Skip to content

Commit

Permalink
[test] Fix Algolia noisy lvl1 anchor (mui#35686)
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviertassinari committed Dec 31, 2022
1 parent 6205492 commit 33a0e1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e-website/material-docs.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ test.describe('Material docs', () => {

const anchor = page.locator('.DocSearch-Hits a:has-text("Card")');

await expect(anchor.first()).toHaveAttribute('href', '/material-ui/react-card/#main-content');
await expect(anchor.first()).toHaveAttribute('href', '/material-ui/react-card/');
});

test('should have correct link when searching API', async ({ page }) => {
Expand All @@ -192,7 +192,7 @@ test.describe('Material docs', () => {

const anchor = page.locator('.DocSearch-Hits a:has-text("Card API")');

await expect(anchor.first()).toHaveAttribute('href', '/material-ui/api/card/#main-content');
await expect(anchor.first()).toHaveAttribute('href', '/material-ui/api/card/');
});
});
});

0 comments on commit 33a0e1c

Please sign in to comment.