mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
fix(e2e): match footer items exactly (#55419)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user