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:
Matthew Raymer
2025-03-31 09:32:58 +00:00
parent 34dc4149f5
commit 9eabbc4a49

View File

@@ -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');