From 1104ecbc1c9a0f9a5b8ce5de966a646b695c410f Mon Sep 17 00:00:00 2001 From: splincode Date: Sat, 2 Nov 2024 16:45:33 +0300 Subject: [PATCH] chore: use `*.pw.spec.ts` postfix for playwright tests --- .cspell.json | 7 +------ projects/demo-playwright/playwright.config.ts | 4 ++-- .../{line-chart.spec.ts => line-chart.pw.spec.ts} | 0 .../pie-chart/{pie-chart.spec.ts => pie-chart.pw.spec.ts} | 0 ...nput-card-group.spec.ts => input-card-group.pw.spec.ts} | 0 .../{input-expire.spec.ts => input-expire.pw.spec.ts} | 0 .../{thumbnail-card.spec.ts => thumbnail-card.pw.spec.ts} | 0 .../{navigation.spec.ts => navigation.pw.spec.ts} | 0 .../addon-doc/{viewport.spec.ts => viewport.pw.spec.ts} | 0 .../{input-date.spec.ts => input-date.pw.spec.ts} | 0 ...{mobile-calendar.spec.ts => mobile-calendar.pw.spec.ts} | 0 .../addon-preview/{preview.spec.ts => preview.pw.spec.ts} | 0 ...able-pagination.spec.ts => table-pagination.pw.spec.ts} | 0 .../addon-table/table/{table.spec.ts => table.pw.spec.ts} | 0 .../{alert-service.spec.ts => alert-service.pw.spec.ts} | 0 ...point-service.spec.ts => breakpoint-service.pw.spec.ts} | 0 .../core/button/{button.spec.ts => button.pw.spec.ts} | 0 .../calendars/{calendars.spec.ts => calendars.pw.spec.ts} | 0 .../data-list/{data-list.spec.ts => data-list.pw.spec.ts} | 0 .../core/dialogs/{dialogs.spec.ts => dialogs.pw.spec.ts} | 0 .../dropdown/{dropdown.spec.ts => dropdown.pw.spec.ts} | 0 .../tests/core/error/{error.spec.ts => error.pw.spec.ts} | 0 .../tests/core/hint/{hint.spec.ts => hint.pw.spec.ts} | 0 .../core/surface/{surface.spec.ts => surface.pw.spec.ts} | 0 .../textarea/{textarea.spec.ts => textarea.pw.spec.ts} | 0 .../textfield/{textfield.spec.ts => textfield.pw.spec.ts} | 0 .../deep/{deep-select.spec.ts => deep-select.pw.spec.ts} | 0 .../deep/{deep-toggle.spec.ts => deep-toggle.pw.spec.ts} | 0 .../tests/demo/{demo.spec.ts => demo.pw.spec.ts} | 2 +- .../tests/demo/{landing.spec.ts => landing.pw.spec.ts} | 0 ...ion-bar.mobile.spec.ts => action-bar.mobile.pw.spec.ts} | 0 .../{action-bar.spec.ts => action-bar.pw.spec.ts} | 0 .../{calendar-range.spec.ts => calendar-range.pw.spec.ts} | 0 .../kit/carousel/{carousel.spec.ts => carousel.pw.spec.ts} | 0 .../{data-wrap-list.spec.ts => data-wrap-list.pw.spec.ts} | 0 ...ropdown-context.spec.ts => dropdown-context.pw.spec.ts} | 0 ...own-selection.spec.ts => dropdown-selection.pw.spec.ts} | 0 .../{field-error.spec.ts => field-error.pw.spec.ts} | 0 .../{input-files.spec.ts => input-files.pw.spec.ts} | 0 .../{input-table.spec.ts => input-table.pw.spec.ts} | 0 .../tests/kit/like/{like.spec.ts => like.pw.spec.ts} | 0 .../{line-clamp.spec.ts => line-clamp.pw.spec.ts} | 0 .../tests/kit/range/{range.spec.ts => range.pw.spec.ts} | 0 .../kit/routable/{routable.spec.ts => routable.pw.spec.ts} | 0 .../tests/kit/slider/{slider.spec.ts => slider.pw.spec.ts} | 0 .../kit/stepper/{stepper.spec.ts => stepper.pw.spec.ts} | 0 .../tests/kit/tabs/{tabs.spec.ts => tabs.pw.spec.ts} | 0 .../kit/textarea/{textarea.spec.ts => textarea.pw.spec.ts} | 0 .../tests/kit/tree/{tree.spec.ts => tree.pw.spec.ts} | 0 .../layout/{navigation.spec.ts => navigation.pw.spec.ts} | 0 .../combo-box/{combobox.spec.ts => combobox.pw.spec.ts} | 0 ...nput-date-range.spec.ts => input-date-range.pw.spec.ts} | 0 ...{input-date-time.spec.ts => input-date-time.pw.spec.ts} | 0 .../{input-date.spec.ts => input-date.pw.spec.ts} | 0 ...ut-month-range.spec.ts => input-month-range.pw.spec.ts} | 0 .../{input-month.spec.ts => input-month.pw.spec.ts} | 0 .../{input-number.spec.ts => input-number.pw.spec.ts} | 0 ...tional.spec.ts => input-phone-international.pw.spec.ts} | 0 .../{input-phone.spec.ts => input-phone.pw.spec.ts} | 0 .../{input-range.spec.ts => input-range.pw.spec.ts} | 0 .../{input-slider.spec.ts => input-slider.pw.spec.ts} | 0 .../input-tag/{input-tag.spec.ts => input-tag.pw.spec.ts} | 0 .../{input-time.spec.ts => input-time.pw.spec.ts} | 0 .../{input-year.spec.ts => input-year.pw.spec.ts} | 0 .../tests/legacy/input/{input.spec.ts => input.pw.spec.ts} | 0 .../{multi-select.spec.ts => multi-select.pw.spec.ts} | 0 ...ve-textfield.spec.ts => primitive-textfield.pw.spec.ts} | 0 .../{select.mobile.spec.ts => select.mobile.pw.spec.ts} | 0 .../legacy/select/{select.spec.ts => select.pw.spec.ts} | 0 .../{tests/demo => utils}/get-demo-paths.ts | 0 .../{tests/demo => utils}/is-flaky-examples.ts | 0 71 files changed, 4 insertions(+), 9 deletions(-) rename projects/demo-playwright/tests/addon-charts/line-chart/{line-chart.spec.ts => line-chart.pw.spec.ts} (100%) rename projects/demo-playwright/tests/addon-charts/pie-chart/{pie-chart.spec.ts => pie-chart.pw.spec.ts} (100%) rename projects/demo-playwright/tests/addon-commerce/{input-card-group.spec.ts => input-card-group.pw.spec.ts} (100%) rename projects/demo-playwright/tests/addon-commerce/{input-expire.spec.ts => input-expire.pw.spec.ts} (100%) rename projects/demo-playwright/tests/addon-commerce/{thumbnail-card.spec.ts => thumbnail-card.pw.spec.ts} (100%) rename projects/demo-playwright/tests/addon-doc/{navigation.spec.ts => navigation.pw.spec.ts} (100%) rename projects/demo-playwright/tests/addon-doc/{viewport.spec.ts => viewport.pw.spec.ts} (100%) rename projects/demo-playwright/tests/addon-mobile/mobile-calendar/{input-date.spec.ts => input-date.pw.spec.ts} (100%) rename projects/demo-playwright/tests/addon-mobile/mobile-calendar/{mobile-calendar.spec.ts => mobile-calendar.pw.spec.ts} (100%) rename projects/demo-playwright/tests/addon-preview/{preview.spec.ts => preview.pw.spec.ts} (100%) rename projects/demo-playwright/tests/addon-table/table-pagination/{table-pagination.spec.ts => table-pagination.pw.spec.ts} (100%) rename projects/demo-playwright/tests/addon-table/table/{table.spec.ts => table.pw.spec.ts} (100%) rename projects/demo-playwright/tests/core/alert-service/{alert-service.spec.ts => alert-service.pw.spec.ts} (100%) rename projects/demo-playwright/tests/core/breakpoint-service/{breakpoint-service.spec.ts => breakpoint-service.pw.spec.ts} (100%) rename projects/demo-playwright/tests/core/button/{button.spec.ts => button.pw.spec.ts} (100%) rename projects/demo-playwright/tests/core/calendars/{calendars.spec.ts => calendars.pw.spec.ts} (100%) rename projects/demo-playwright/tests/core/data-list/{data-list.spec.ts => data-list.pw.spec.ts} (100%) rename projects/demo-playwright/tests/core/dialogs/{dialogs.spec.ts => dialogs.pw.spec.ts} (100%) rename projects/demo-playwright/tests/core/dropdown/{dropdown.spec.ts => dropdown.pw.spec.ts} (100%) rename projects/demo-playwright/tests/core/error/{error.spec.ts => error.pw.spec.ts} (100%) rename projects/demo-playwright/tests/core/hint/{hint.spec.ts => hint.pw.spec.ts} (100%) rename projects/demo-playwright/tests/core/surface/{surface.spec.ts => surface.pw.spec.ts} (100%) rename projects/demo-playwright/tests/core/textarea/{textarea.spec.ts => textarea.pw.spec.ts} (100%) rename projects/demo-playwright/tests/core/textfield/{textfield.spec.ts => textfield.pw.spec.ts} (100%) rename projects/demo-playwright/tests/deep/{deep-select.spec.ts => deep-select.pw.spec.ts} (100%) rename projects/demo-playwright/tests/deep/{deep-toggle.spec.ts => deep-toggle.pw.spec.ts} (100%) rename projects/demo-playwright/tests/demo/{demo.spec.ts => demo.pw.spec.ts} (95%) rename projects/demo-playwright/tests/demo/{landing.spec.ts => landing.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/action-bar/{action-bar.mobile.spec.ts => action-bar.mobile.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/action-bar/{action-bar.spec.ts => action-bar.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/calendar-range/{calendar-range.spec.ts => calendar-range.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/carousel/{carousel.spec.ts => carousel.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/data-wrap-list/{data-wrap-list.spec.ts => data-wrap-list.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/dropdown-context/{dropdown-context.spec.ts => dropdown-context.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/dropdown-selection/{dropdown-selection.spec.ts => dropdown-selection.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/field-error/{field-error.spec.ts => field-error.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/input-files/{input-files.spec.ts => input-files.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/input-table/{input-table.spec.ts => input-table.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/like/{like.spec.ts => like.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/line-clamp/{line-clamp.spec.ts => line-clamp.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/range/{range.spec.ts => range.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/routable/{routable.spec.ts => routable.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/slider/{slider.spec.ts => slider.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/stepper/{stepper.spec.ts => stepper.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/tabs/{tabs.spec.ts => tabs.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/textarea/{textarea.spec.ts => textarea.pw.spec.ts} (100%) rename projects/demo-playwright/tests/kit/tree/{tree.spec.ts => tree.pw.spec.ts} (100%) rename projects/demo-playwright/tests/layout/{navigation.spec.ts => navigation.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/combo-box/{combobox.spec.ts => combobox.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/input-date-range/{input-date-range.spec.ts => input-date-range.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/input-date-time/{input-date-time.spec.ts => input-date-time.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/input-date/{input-date.spec.ts => input-date.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/input-month-range/{input-month-range.spec.ts => input-month-range.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/input-month/{input-month.spec.ts => input-month.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/input-number/{input-number.spec.ts => input-number.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/input-phone-international/{input-phone-international.spec.ts => input-phone-international.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/input-phone/{input-phone.spec.ts => input-phone.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/input-range/{input-range.spec.ts => input-range.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/input-slider/{input-slider.spec.ts => input-slider.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/input-tag/{input-tag.spec.ts => input-tag.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/input-time/{input-time.spec.ts => input-time.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/input-year/{input-year.spec.ts => input-year.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/input/{input.spec.ts => input.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/multi-select/{multi-select.spec.ts => multi-select.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/primitive-textfield/{primitive-textfield.spec.ts => primitive-textfield.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/select/{select.mobile.spec.ts => select.mobile.pw.spec.ts} (100%) rename projects/demo-playwright/tests/legacy/select/{select.spec.ts => select.pw.spec.ts} (100%) rename projects/demo-playwright/{tests/demo => utils}/get-demo-paths.ts (100%) rename projects/demo-playwright/{tests/demo => utils}/is-flaky-examples.ts (100%) diff --git a/.cspell.json b/.cspell.json index 2fce392a11ce5..951f064bafbc5 100644 --- a/.cspell.json +++ b/.cspell.json @@ -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": [ { @@ -27,11 +27,6 @@ "languageId": "ts", "filename": ["**/tests/schematic-migrate-sliders.spec.ts"], "ignoreWords": ["Maxxxxx"] - }, - { - "languageId": "ts", - "filename": ["**/textarea.spec.ts"], - "ignoreWords": ["qwertypgj_"] } ] } diff --git a/projects/demo-playwright/playwright.config.ts b/projects/demo-playwright/playwright.config.ts index 676a74f58a61d..0a61121e1469d 100644 --- a/projects/demo-playwright/playwright.config.ts +++ b/projects/demo-playwright/playwright.config.ts @@ -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}; @@ -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'}]], diff --git a/projects/demo-playwright/tests/addon-charts/line-chart/line-chart.spec.ts b/projects/demo-playwright/tests/addon-charts/line-chart/line-chart.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/addon-charts/line-chart/line-chart.spec.ts rename to projects/demo-playwright/tests/addon-charts/line-chart/line-chart.pw.spec.ts diff --git a/projects/demo-playwright/tests/addon-charts/pie-chart/pie-chart.spec.ts b/projects/demo-playwright/tests/addon-charts/pie-chart/pie-chart.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/addon-charts/pie-chart/pie-chart.spec.ts rename to projects/demo-playwright/tests/addon-charts/pie-chart/pie-chart.pw.spec.ts diff --git a/projects/demo-playwright/tests/addon-commerce/input-card-group.spec.ts b/projects/demo-playwright/tests/addon-commerce/input-card-group.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/addon-commerce/input-card-group.spec.ts rename to projects/demo-playwright/tests/addon-commerce/input-card-group.pw.spec.ts diff --git a/projects/demo-playwright/tests/addon-commerce/input-expire.spec.ts b/projects/demo-playwright/tests/addon-commerce/input-expire.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/addon-commerce/input-expire.spec.ts rename to projects/demo-playwright/tests/addon-commerce/input-expire.pw.spec.ts diff --git a/projects/demo-playwright/tests/addon-commerce/thumbnail-card.spec.ts b/projects/demo-playwright/tests/addon-commerce/thumbnail-card.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/addon-commerce/thumbnail-card.spec.ts rename to projects/demo-playwright/tests/addon-commerce/thumbnail-card.pw.spec.ts diff --git a/projects/demo-playwright/tests/addon-doc/navigation.spec.ts b/projects/demo-playwright/tests/addon-doc/navigation.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/addon-doc/navigation.spec.ts rename to projects/demo-playwright/tests/addon-doc/navigation.pw.spec.ts diff --git a/projects/demo-playwright/tests/addon-doc/viewport.spec.ts b/projects/demo-playwright/tests/addon-doc/viewport.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/addon-doc/viewport.spec.ts rename to projects/demo-playwright/tests/addon-doc/viewport.pw.spec.ts diff --git a/projects/demo-playwright/tests/addon-mobile/mobile-calendar/input-date.spec.ts b/projects/demo-playwright/tests/addon-mobile/mobile-calendar/input-date.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/addon-mobile/mobile-calendar/input-date.spec.ts rename to projects/demo-playwright/tests/addon-mobile/mobile-calendar/input-date.pw.spec.ts diff --git a/projects/demo-playwright/tests/addon-mobile/mobile-calendar/mobile-calendar.spec.ts b/projects/demo-playwright/tests/addon-mobile/mobile-calendar/mobile-calendar.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/addon-mobile/mobile-calendar/mobile-calendar.spec.ts rename to projects/demo-playwright/tests/addon-mobile/mobile-calendar/mobile-calendar.pw.spec.ts diff --git a/projects/demo-playwright/tests/addon-preview/preview.spec.ts b/projects/demo-playwright/tests/addon-preview/preview.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/addon-preview/preview.spec.ts rename to projects/demo-playwright/tests/addon-preview/preview.pw.spec.ts diff --git a/projects/demo-playwright/tests/addon-table/table-pagination/table-pagination.spec.ts b/projects/demo-playwright/tests/addon-table/table-pagination/table-pagination.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/addon-table/table-pagination/table-pagination.spec.ts rename to projects/demo-playwright/tests/addon-table/table-pagination/table-pagination.pw.spec.ts diff --git a/projects/demo-playwright/tests/addon-table/table/table.spec.ts b/projects/demo-playwright/tests/addon-table/table/table.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/addon-table/table/table.spec.ts rename to projects/demo-playwright/tests/addon-table/table/table.pw.spec.ts diff --git a/projects/demo-playwright/tests/core/alert-service/alert-service.spec.ts b/projects/demo-playwright/tests/core/alert-service/alert-service.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/core/alert-service/alert-service.spec.ts rename to projects/demo-playwright/tests/core/alert-service/alert-service.pw.spec.ts diff --git a/projects/demo-playwright/tests/core/breakpoint-service/breakpoint-service.spec.ts b/projects/demo-playwright/tests/core/breakpoint-service/breakpoint-service.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/core/breakpoint-service/breakpoint-service.spec.ts rename to projects/demo-playwright/tests/core/breakpoint-service/breakpoint-service.pw.spec.ts diff --git a/projects/demo-playwright/tests/core/button/button.spec.ts b/projects/demo-playwright/tests/core/button/button.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/core/button/button.spec.ts rename to projects/demo-playwright/tests/core/button/button.pw.spec.ts diff --git a/projects/demo-playwright/tests/core/calendars/calendars.spec.ts b/projects/demo-playwright/tests/core/calendars/calendars.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/core/calendars/calendars.spec.ts rename to projects/demo-playwright/tests/core/calendars/calendars.pw.spec.ts diff --git a/projects/demo-playwright/tests/core/data-list/data-list.spec.ts b/projects/demo-playwright/tests/core/data-list/data-list.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/core/data-list/data-list.spec.ts rename to projects/demo-playwright/tests/core/data-list/data-list.pw.spec.ts diff --git a/projects/demo-playwright/tests/core/dialogs/dialogs.spec.ts b/projects/demo-playwright/tests/core/dialogs/dialogs.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/core/dialogs/dialogs.spec.ts rename to projects/demo-playwright/tests/core/dialogs/dialogs.pw.spec.ts diff --git a/projects/demo-playwright/tests/core/dropdown/dropdown.spec.ts b/projects/demo-playwright/tests/core/dropdown/dropdown.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/core/dropdown/dropdown.spec.ts rename to projects/demo-playwright/tests/core/dropdown/dropdown.pw.spec.ts diff --git a/projects/demo-playwright/tests/core/error/error.spec.ts b/projects/demo-playwright/tests/core/error/error.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/core/error/error.spec.ts rename to projects/demo-playwright/tests/core/error/error.pw.spec.ts diff --git a/projects/demo-playwright/tests/core/hint/hint.spec.ts b/projects/demo-playwright/tests/core/hint/hint.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/core/hint/hint.spec.ts rename to projects/demo-playwright/tests/core/hint/hint.pw.spec.ts diff --git a/projects/demo-playwright/tests/core/surface/surface.spec.ts b/projects/demo-playwright/tests/core/surface/surface.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/core/surface/surface.spec.ts rename to projects/demo-playwright/tests/core/surface/surface.pw.spec.ts diff --git a/projects/demo-playwright/tests/core/textarea/textarea.spec.ts b/projects/demo-playwright/tests/core/textarea/textarea.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/core/textarea/textarea.spec.ts rename to projects/demo-playwright/tests/core/textarea/textarea.pw.spec.ts diff --git a/projects/demo-playwright/tests/core/textfield/textfield.spec.ts b/projects/demo-playwright/tests/core/textfield/textfield.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/core/textfield/textfield.spec.ts rename to projects/demo-playwright/tests/core/textfield/textfield.pw.spec.ts diff --git a/projects/demo-playwright/tests/deep/deep-select.spec.ts b/projects/demo-playwright/tests/deep/deep-select.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/deep/deep-select.spec.ts rename to projects/demo-playwright/tests/deep/deep-select.pw.spec.ts diff --git a/projects/demo-playwright/tests/deep/deep-toggle.spec.ts b/projects/demo-playwright/tests/deep/deep-toggle.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/deep/deep-toggle.spec.ts rename to projects/demo-playwright/tests/deep/deep-toggle.pw.spec.ts diff --git a/projects/demo-playwright/tests/demo/demo.spec.ts b/projects/demo-playwright/tests/demo/demo.pw.spec.ts similarity index 95% rename from projects/demo-playwright/tests/demo/demo.spec.ts rename to projects/demo-playwright/tests/demo/demo.pw.spec.ts index 83159721eb5cc..a727930b28250 100644 --- a/projects/demo-playwright/tests/demo/demo.spec.ts +++ b/projects/demo-playwright/tests/demo/demo.pw.spec.ts @@ -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']!); diff --git a/projects/demo-playwright/tests/demo/landing.spec.ts b/projects/demo-playwright/tests/demo/landing.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/demo/landing.spec.ts rename to projects/demo-playwright/tests/demo/landing.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/action-bar/action-bar.mobile.spec.ts b/projects/demo-playwright/tests/kit/action-bar/action-bar.mobile.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/action-bar/action-bar.mobile.spec.ts rename to projects/demo-playwright/tests/kit/action-bar/action-bar.mobile.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/action-bar/action-bar.spec.ts b/projects/demo-playwright/tests/kit/action-bar/action-bar.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/action-bar/action-bar.spec.ts rename to projects/demo-playwright/tests/kit/action-bar/action-bar.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/calendar-range/calendar-range.spec.ts b/projects/demo-playwright/tests/kit/calendar-range/calendar-range.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/calendar-range/calendar-range.spec.ts rename to projects/demo-playwright/tests/kit/calendar-range/calendar-range.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/carousel/carousel.spec.ts b/projects/demo-playwright/tests/kit/carousel/carousel.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/carousel/carousel.spec.ts rename to projects/demo-playwright/tests/kit/carousel/carousel.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/data-wrap-list/data-wrap-list.spec.ts b/projects/demo-playwright/tests/kit/data-wrap-list/data-wrap-list.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/data-wrap-list/data-wrap-list.spec.ts rename to projects/demo-playwright/tests/kit/data-wrap-list/data-wrap-list.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/dropdown-context/dropdown-context.spec.ts b/projects/demo-playwright/tests/kit/dropdown-context/dropdown-context.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/dropdown-context/dropdown-context.spec.ts rename to projects/demo-playwright/tests/kit/dropdown-context/dropdown-context.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/dropdown-selection/dropdown-selection.spec.ts b/projects/demo-playwright/tests/kit/dropdown-selection/dropdown-selection.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/dropdown-selection/dropdown-selection.spec.ts rename to projects/demo-playwright/tests/kit/dropdown-selection/dropdown-selection.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/field-error/field-error.spec.ts b/projects/demo-playwright/tests/kit/field-error/field-error.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/field-error/field-error.spec.ts rename to projects/demo-playwright/tests/kit/field-error/field-error.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/input-files/input-files.spec.ts b/projects/demo-playwright/tests/kit/input-files/input-files.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/input-files/input-files.spec.ts rename to projects/demo-playwright/tests/kit/input-files/input-files.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/input-table/input-table.spec.ts b/projects/demo-playwright/tests/kit/input-table/input-table.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/input-table/input-table.spec.ts rename to projects/demo-playwright/tests/kit/input-table/input-table.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/like/like.spec.ts b/projects/demo-playwright/tests/kit/like/like.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/like/like.spec.ts rename to projects/demo-playwright/tests/kit/like/like.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/line-clamp/line-clamp.spec.ts b/projects/demo-playwright/tests/kit/line-clamp/line-clamp.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/line-clamp/line-clamp.spec.ts rename to projects/demo-playwright/tests/kit/line-clamp/line-clamp.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/range/range.spec.ts b/projects/demo-playwright/tests/kit/range/range.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/range/range.spec.ts rename to projects/demo-playwright/tests/kit/range/range.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/routable/routable.spec.ts b/projects/demo-playwright/tests/kit/routable/routable.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/routable/routable.spec.ts rename to projects/demo-playwright/tests/kit/routable/routable.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/slider/slider.spec.ts b/projects/demo-playwright/tests/kit/slider/slider.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/slider/slider.spec.ts rename to projects/demo-playwright/tests/kit/slider/slider.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/stepper/stepper.spec.ts b/projects/demo-playwright/tests/kit/stepper/stepper.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/stepper/stepper.spec.ts rename to projects/demo-playwright/tests/kit/stepper/stepper.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/tabs/tabs.spec.ts b/projects/demo-playwright/tests/kit/tabs/tabs.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/tabs/tabs.spec.ts rename to projects/demo-playwright/tests/kit/tabs/tabs.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/textarea/textarea.spec.ts b/projects/demo-playwright/tests/kit/textarea/textarea.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/textarea/textarea.spec.ts rename to projects/demo-playwright/tests/kit/textarea/textarea.pw.spec.ts diff --git a/projects/demo-playwright/tests/kit/tree/tree.spec.ts b/projects/demo-playwright/tests/kit/tree/tree.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/kit/tree/tree.spec.ts rename to projects/demo-playwright/tests/kit/tree/tree.pw.spec.ts diff --git a/projects/demo-playwright/tests/layout/navigation.spec.ts b/projects/demo-playwright/tests/layout/navigation.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/layout/navigation.spec.ts rename to projects/demo-playwright/tests/layout/navigation.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/combo-box/combobox.spec.ts b/projects/demo-playwright/tests/legacy/combo-box/combobox.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/combo-box/combobox.spec.ts rename to projects/demo-playwright/tests/legacy/combo-box/combobox.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/input-date-range/input-date-range.spec.ts b/projects/demo-playwright/tests/legacy/input-date-range/input-date-range.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/input-date-range/input-date-range.spec.ts rename to projects/demo-playwright/tests/legacy/input-date-range/input-date-range.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/input-date-time/input-date-time.spec.ts b/projects/demo-playwright/tests/legacy/input-date-time/input-date-time.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/input-date-time/input-date-time.spec.ts rename to projects/demo-playwright/tests/legacy/input-date-time/input-date-time.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/input-date/input-date.spec.ts b/projects/demo-playwright/tests/legacy/input-date/input-date.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/input-date/input-date.spec.ts rename to projects/demo-playwright/tests/legacy/input-date/input-date.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/input-month-range/input-month-range.spec.ts b/projects/demo-playwright/tests/legacy/input-month-range/input-month-range.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/input-month-range/input-month-range.spec.ts rename to projects/demo-playwright/tests/legacy/input-month-range/input-month-range.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/input-month/input-month.spec.ts b/projects/demo-playwright/tests/legacy/input-month/input-month.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/input-month/input-month.spec.ts rename to projects/demo-playwright/tests/legacy/input-month/input-month.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/input-number/input-number.spec.ts b/projects/demo-playwright/tests/legacy/input-number/input-number.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/input-number/input-number.spec.ts rename to projects/demo-playwright/tests/legacy/input-number/input-number.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/input-phone-international/input-phone-international.spec.ts b/projects/demo-playwright/tests/legacy/input-phone-international/input-phone-international.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/input-phone-international/input-phone-international.spec.ts rename to projects/demo-playwright/tests/legacy/input-phone-international/input-phone-international.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/input-phone/input-phone.spec.ts b/projects/demo-playwright/tests/legacy/input-phone/input-phone.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/input-phone/input-phone.spec.ts rename to projects/demo-playwright/tests/legacy/input-phone/input-phone.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/input-range/input-range.spec.ts b/projects/demo-playwright/tests/legacy/input-range/input-range.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/input-range/input-range.spec.ts rename to projects/demo-playwright/tests/legacy/input-range/input-range.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/input-slider/input-slider.spec.ts b/projects/demo-playwright/tests/legacy/input-slider/input-slider.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/input-slider/input-slider.spec.ts rename to projects/demo-playwright/tests/legacy/input-slider/input-slider.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/input-tag/input-tag.spec.ts b/projects/demo-playwright/tests/legacy/input-tag/input-tag.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/input-tag/input-tag.spec.ts rename to projects/demo-playwright/tests/legacy/input-tag/input-tag.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts b/projects/demo-playwright/tests/legacy/input-time/input-time.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/input-time/input-time.spec.ts rename to projects/demo-playwright/tests/legacy/input-time/input-time.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/input-year/input-year.spec.ts b/projects/demo-playwright/tests/legacy/input-year/input-year.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/input-year/input-year.spec.ts rename to projects/demo-playwright/tests/legacy/input-year/input-year.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/input/input.spec.ts b/projects/demo-playwright/tests/legacy/input/input.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/input/input.spec.ts rename to projects/demo-playwright/tests/legacy/input/input.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/multi-select/multi-select.spec.ts b/projects/demo-playwright/tests/legacy/multi-select/multi-select.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/multi-select/multi-select.spec.ts rename to projects/demo-playwright/tests/legacy/multi-select/multi-select.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/primitive-textfield/primitive-textfield.spec.ts b/projects/demo-playwright/tests/legacy/primitive-textfield/primitive-textfield.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/primitive-textfield/primitive-textfield.spec.ts rename to projects/demo-playwright/tests/legacy/primitive-textfield/primitive-textfield.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/select/select.mobile.spec.ts b/projects/demo-playwright/tests/legacy/select/select.mobile.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/select/select.mobile.spec.ts rename to projects/demo-playwright/tests/legacy/select/select.mobile.pw.spec.ts diff --git a/projects/demo-playwright/tests/legacy/select/select.spec.ts b/projects/demo-playwright/tests/legacy/select/select.pw.spec.ts similarity index 100% rename from projects/demo-playwright/tests/legacy/select/select.spec.ts rename to projects/demo-playwright/tests/legacy/select/select.pw.spec.ts diff --git a/projects/demo-playwright/tests/demo/get-demo-paths.ts b/projects/demo-playwright/utils/get-demo-paths.ts similarity index 100% rename from projects/demo-playwright/tests/demo/get-demo-paths.ts rename to projects/demo-playwright/utils/get-demo-paths.ts diff --git a/projects/demo-playwright/tests/demo/is-flaky-examples.ts b/projects/demo-playwright/utils/is-flaky-examples.ts similarity index 100% rename from projects/demo-playwright/tests/demo/is-flaky-examples.ts rename to projects/demo-playwright/utils/is-flaky-examples.ts