From 1f69dda24cdc4a581e05fcbb1f969db7e85ce083 Mon Sep 17 00:00:00 2001 From: itwillwork Date: Thu, 4 Jul 2024 11:01:48 +0300 Subject: [PATCH] test(Button): unuse regression --- package.json | 2 +- .../Button/__tests__/Button.visual.test.tsx | 18 ------------------ 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/package.json b/package.json index a3acbd3244..90859c437f 100644 --- a/package.json +++ b/package.json @@ -109,7 +109,7 @@ "typecheck": "tsc --noEmit", "prepublishOnly": "npm run build && npm pkg delete engines", "playwright:install": "playwright install --with-deps", - "playwright": "playwright test --config=playwright/playwright.config.ts --grep-invert=@regression", + "playwright": "playwright test --config=playwright/playwright.config.ts", "playwright:update": "npm run playwright -- -u", "playwright:docker": "./scripts/playwright-docker.sh 'npm run playwright'", "playwright:docker:update": "./scripts/playwright-docker.sh 'npm run playwright:update'", diff --git a/src/components/Button/__tests__/Button.visual.test.tsx b/src/components/Button/__tests__/Button.visual.test.tsx index ca7dc05bbb..43ad44a26e 100644 --- a/src/components/Button/__tests__/Button.visual.test.tsx +++ b/src/components/Button/__tests__/Button.visual.test.tsx @@ -2,7 +2,6 @@ import React from 'react'; import {test} from '~playwright/core'; -import {createRegressionScenarios} from '../../../stories/tests-factory/create-regression-scenarios'; import {createSmokeScenarios} from '../../../stories/tests-factory/create-smoke-scenarios'; import {Button} from '../Button'; @@ -106,21 +105,4 @@ test.describe('Button', {tag: '@Button'}, () => { await expectScreenshot(); }); }); - - const regressionScenarios = createRegressionScenarios(defaultProps, { - size: sizeCases, - selected: selectedCases, - disabled: disabledCases, - loading: loadingCases, - view: viewsCases, - pin: pinsCases, - }); - - regressionScenarios.forEach(([title, details, props]) => { - test(title, details, async ({mount, expectScreenshot}) => { - await mount(