fix tests that were broken by contact-edit page changes

This commit is contained in:
2025-01-05 19:37:49 -07:00
parent 3c1731acdf
commit 0a7645b8e7
4 changed files with 18 additions and 10 deletions

View File

@@ -56,7 +56,7 @@ export async function deleteContact(page: Page, did: string): Promise<void> {
await page.goto('./contacts');
const contactName = createContactName(did);
// go to the detail page for this contact
await page.locator(`li[data-testid="contactListItem"] h2:has-text("${contactName}") + a`).click();
await page.locator(`li[data-testid="contactListItem"] h2:has-text("${contactName}") + span svg.fa-circle-info`).click();
// delete the contact
await page.locator('button > svg.fa-trash-can').click();
await page.locator('div[role="alert"] button:has-text("Yes")').click();