Browse Source

Fix: target success notification

- Changed target element from span to h4
pull/169/head
Jose Olarte III 7 days ago
parent
commit
e15f540292
  1. 2
      test-playwright/60-new-activity.spec.ts

2
test-playwright/60-new-activity.spec.ts

@ -24,7 +24,7 @@ test('New offers for another user', async ({ page }) => {
await expect(page.locator('button > svg.fa-plus')).toBeVisible();
await page.locator('button > svg.fa-plus').click();
await page.locator('div[role="alert"] button:has-text("No")').click(); // don't register
await expect(page.locator('div[role="alert"] span:has-text("Success")')).toBeVisible();
await expect(page.locator('div[role="alert"] h4:has-text("Success")')).toBeVisible();
await page.locator('div[role="alert"] button > svg.fa-xmark').click(); // dismiss info alert
await expect(page.locator('div[role="alert"] button > svg.fa-xmark')).toBeHidden(); // ensure alert is gone

Loading…
Cancel
Save