Browse Source

Update: locator for contact link

web-serve-fix
Jose Olarte III 1 week ago
parent
commit
631bbeb182
  1. 2
      test-playwright/testUtils.ts

2
test-playwright/testUtils.ts

@ -63,7 +63,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}") + 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();

Loading…
Cancel
Save