fix(e2e): match footer items exactly (#55419)

This commit is contained in:
Huyen Nguyen
2024-07-04 06:26:21 -07:00
committed by GitHub
parent 1570fbf702
commit 48dd771604

View File

@@ -152,7 +152,7 @@ test.describe('Footer bottom section', () => {
}
for (const item of BOTTOM_LINKS) {
const link = page.getByRole('link', { name: item.title });
const link = page.getByRole('link', { name: item.title, exact: true });
await expect(link).toBeVisible();
await expect(link).toHaveAttribute('href', item.href);