From f6c548e473e262a232503d4adcf6967cde9d58e5 Mon Sep 17 00:00:00 2001 From: Andrew Date: Fri, 7 Apr 2023 17:06:36 +0200 Subject: [PATCH] fix failing e2e website tests Sync with https://github.com/mui/material-ui/pull/35686 --- test/e2e-website/material-docs.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/e2e-website/material-docs.spec.ts b/test/e2e-website/material-docs.spec.ts index e74d4d9cab2f50..fff8f7a1035284 100644 --- a/test/e2e-website/material-docs.spec.ts +++ b/test/e2e-website/material-docs.spec.ts @@ -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 }) => { @@ -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/'); }); }); });