mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(e2e): match footer items exactly (#55419)
This commit is contained in:
+1
-1
@@ -152,7 +152,7 @@ test.describe('Footer bottom section', () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (const item of BOTTOM_LINKS) {
|
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).toBeVisible();
|
||||||
await expect(link).toHaveAttribute('href', item.href);
|
await expect(link).toHaveAttribute('href', item.href);
|
||||||
|
|||||||
Reference in New Issue
Block a user