diff --git a/test-playwright/testUtils.ts b/test-playwright/testUtils.ts index 13cced1f..8b991f50 100644 --- a/test-playwright/testUtils.ts +++ b/test-playwright/testUtils.ts @@ -63,7 +63,7 @@ export async function deleteContact(page: Page, did: string): Promise { 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}") + span svg.fa-circle-info`).click(); + await page.locator(`li[data-testid="contactListItem"] h2:has-text("${contactName}") + div 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();