Skip to content

Commit

Permalink
fix failing e2e website tests
Browse files Browse the repository at this point in the history
Sync with mui#35686
  • Loading branch information
cherniavskii committed Apr 7, 2023
1 parent 8d41b5b commit f6c548e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/e2e-website/material-docs.spec.ts
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 f6c548e

Please sign in to comment.