Skip to content

Commit

Permalink
chore: use *.pw.spec.ts postfix for playwright tests
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Nov 5, 2024
1 parent 5908330 commit 1104ecb
Show file tree
Hide file tree
Showing 71 changed files with 4 additions and 9 deletions.
7 changes: 1 addition & 6 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"import": ["@taiga-ui/cspell-config/cspell.config.js"],
"files": ["*/*.*"],
"ignorePaths": ["**/projects/i18n/languages/**", "**/addon-commerce/utils/get-currency-symbol.ts"],
"ignoreWords": ["Wachovia", "bottomsheet", "appbar"],
"ignoreWords": ["Wachovia", "bottomsheet", "appbar", "qwertypgj_"],
"ignoreRegExpList": ["\\(https?://.*?\\)", "\\/{1}.+\\/{1}", "\\%2F.+", "\\%2C.+", "\\ɵ.+", "\\ыва.+"],
"overrides": [
{
Expand All @@ -27,11 +27,6 @@
"languageId": "ts",
"filename": ["**/tests/schematic-migrate-sliders.spec.ts"],
"ignoreWords": ["Maxxxxx"]
},
{
"languageId": "ts",
"filename": ["**/textarea.spec.ts"],
"ignoreWords": ["qwertypgj_"]
}
]
}
4 changes: 2 additions & 2 deletions projects/demo-playwright/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {defineConfig, devices} from '@playwright/test';
import type {ViewportSize} from 'playwright-core';

import {pages as PUBLIC_PAGES} from '../demo/src/modules/app/pages';
import {tuiGetDemoPathsForE2E} from './tests/demo/get-demo-paths';
import {tuiGetDemoPathsForE2E} from './utils/get-demo-paths';

const DEFAULT_VIEWPORT: ViewportSize = {width: 750, height: 700};

Expand All @@ -13,7 +13,7 @@ process.env['DEMO_PATHS'] = JSON.stringify(tuiGetDemoPathsForE2E(PUBLIC_PAGES));
*/
export default defineConfig({
testDir: __dirname,
testMatch: '**/*.spec.ts',
testMatch: '**/*.pw.spec.ts',
outputDir: 'tests-results',
snapshotDir: 'snapshots',
reporter: process.env.CI ? 'github' : [['html', {outputFolder: 'tests-report'}]],
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {TuiDocumentationPagePO, tuiGoto, tuiMockImages} from '@demo-playwright/utils';
import {expect, test} from '@playwright/test';

import {tuiIsFlakyExample} from './is-flaky-examples';
import {tuiIsFlakyExample} from '../../utils/is-flaky-examples';

test.describe('Demo', () => {
const demoPaths: string[] = JSON.parse(process.env['DEMO_PATHS']!);
Expand Down

0 comments on commit 1104ecb

Please sign in to comment.