From 09b6c933c781a6d00350edbef5d13b17c5ca159d Mon Sep 17 00:00:00 2001 From: siriwatknp Date: Fri, 21 Jan 2022 14:28:23 +0700 Subject: [PATCH] skip current test if migration is done --- test/e2e-website/data-grid-current.spec.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/e2e-website/data-grid-current.spec.ts b/test/e2e-website/data-grid-current.spec.ts index e7c83f15ee9ca..d7305351f3b74 100644 --- a/test/e2e-website/data-grid-current.spec.ts +++ b/test/e2e-website/data-grid-current.spec.ts @@ -1,9 +1,14 @@ import { test as base, expect, Page } from '@playwright/test'; import kebabCase from 'lodash/kebabCase'; +import FEATURE_TOGGLE from 'docs/src/featureToggle'; import { TestFixture } from './playwright.config'; const test = base.extend({}); +test.beforeEach(async ({}) => { + test.skip(FEATURE_TOGGLE.enable_redirects, 'Migration is done.'); +}); + test.describe.parallel('DataGrid docs', () => { test('should have correct link with hash in the TOC', async ({ page }) => { await page.goto(`/components/data-grid/getting-started/`);