refactor: break up web/contact

This commit is contained in:
Robert Perce 2026-02-01 21:56:20 -06:00
parent 2e1fbd00be
commit 57177612ec
8 changed files with 166 additions and 121 deletions

View file

@ -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);