refactor: break up web/contact
This commit is contained in:
parent
2e1fbd00be
commit
57177612ec
8 changed files with 166 additions and 121 deletions
|
|
@ -16,6 +16,9 @@ type UserFields = {
|
|||
export const verifyCreateUser = async (page: Page, fields: UserFields) => {
|
||||
await page.getByRole('button', { name: /add contact/i }).click();
|
||||
|
||||
// TODO this is stupid but playwright kept filling while alpine was initializing
|
||||
await page.waitForTimeout(200);
|
||||
|
||||
const { names, ...simple } = fields;
|
||||
for (const name of (names ?? [])) {
|
||||
await page.getByRole('textbox', { name: 'New name' }).fill(name);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue