forked from trent_larson/crowd-funder-for-time-pwa
fix: resolve strict mode violation in gift recording test
- Update selector to target specific gift text link instead of generic anchor - Add filter to ensure unique element selection - Fix test reliability by being explicit about element selection
This commit is contained in:
@@ -109,7 +109,11 @@ test('Record something given', async ({ page }) => {
|
||||
|
||||
// Refresh home view and check gift
|
||||
await page.goto('./');
|
||||
await page.locator('li').filter({ hasText: finalTitle }).locator('a').click();
|
||||
await page.locator('li')
|
||||
.filter({ hasText: finalTitle })
|
||||
.locator('a.cursor-pointer')
|
||||
.filter({ hasText: finalTitle })
|
||||
.click();
|
||||
await expect(page.getByRole('heading', { name: 'Verifiable Claim Details' })).toBeVisible();
|
||||
await expect(page.getByText(finalTitle, { exact: true })).toBeVisible();
|
||||
const page1Promise = page.waitForEvent('popup');
|
||||
|
||||
Reference in New Issue
Block a user