Skip to content

Commit

Permalink
[docs] Follow up new doc space issues (#31251)
Browse files Browse the repository at this point in the history
  • Loading branch information
siriwatknp committed Mar 1, 2022
1 parent 1c6320b commit ee59e19
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/src/modules/components/AppNavDrawer.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function ProductDrawerButton(props) {
/>
<LinksWrapper>
<Link
href={ROUTES.dataGridDocs}
href={ROUTES.dataGridSpace}
// eslint-disable-next-line material-ui/no-hardcoded-labels
>
Data Grid <KeyboardArrowRight fontSize="small" />
Expand Down
1 change: 1 addition & 0 deletions docs/src/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ const ROUTES = {
? '/material-ui/discover-more/backers/#gold'
: '/discover-more/backers/#gold/',
store: 'https://mui.com/store/',
dataGridSpace: '/x/react-data-grid/getting-started/',
dataGridDocs: FEATURE_TOGGLE.enable_redirects
? '/x/react-data-grid/getting-started/'
: '/components/data-grid/getting-started/',
Expand Down
12 changes: 3 additions & 9 deletions test/e2e-website/products-drawer.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,9 @@ test('able to navigate between products', async ({ page }) => {
'/system/basics/',
);

if (FEATURE_TOGGLE.enable_redirects) {
await expect(
page.locator('#mui-product-menu a[href="/x/react-data-grid/getting-started/"]'),
).toBeVisible();
} else {
await expect(
page.locator('#mui-product-menu a[href="/components/data-grid/getting-started/"]'),
).toBeVisible();
}
await expect(
page.locator('#mui-product-menu a[href="/x/react-data-grid/getting-started/"]'),
).toBeVisible();

if (FEATURE_TOGGLE.enable_mui_base_scope) {
await expect(
Expand Down

0 comments on commit ee59e19

Please sign in to comment.