Skip to content

Commit

Permalink
fix(e2e): match footer items exactly (freeCodeCamp#55419)
Browse files Browse the repository at this point in the history
  • Loading branch information
huyenltnguyen authored Jul 4, 2024
1 parent 1570fbf commit 48dd771
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion e2e/footer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 48dd771

Please sign in to comment.