-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(pie-text-input): DSW-2384 tests to use @playwright/test (#2194)
* text input tests * refactor components tests * add variation stories * add slot variations * visual tests * update import --------- Co-authored-by: Ben Siggery <[email protected]>
- Loading branch information
Showing
8 changed files
with
1,113 additions
and
1,066 deletions.
There are no files selected for viewing
402 changes: 402 additions & 0 deletions
402
apps/pie-storybook/stories/testing/pie-text-input.test.stories.ts
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
packages/components/pie-text-input/playwright-lit-visual.config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { defineConfig } from '@sand4rt/experimental-ct-web'; | ||
import { getPlaywrightVisualConfig } from '@justeattakeaway/pie-components-config'; | ||
import { defineConfig } from '@playwright/test'; | ||
import { getPlaywrightNativeVisualConfig } from '@justeattakeaway/pie-components-config'; | ||
|
||
export default defineConfig(getPlaywrightVisualConfig()); | ||
export default defineConfig(getPlaywrightNativeVisualConfig()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { defineConfig } from '@sand4rt/experimental-ct-web'; | ||
import { getPlaywrightConfig } from '@justeattakeaway/pie-components-config'; | ||
import { defineConfig } from '@playwright/test'; | ||
import { getPlaywrightNativeConfig } from '@justeattakeaway/pie-components-config'; | ||
|
||
export default defineConfig(getPlaywrightConfig()); | ||
export default defineConfig(getPlaywrightNativeConfig()); |
9 changes: 5 additions & 4 deletions
9
packages/components/pie-text-input/test/accessibility/pie-text-input.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1,234 changes: 624 additions & 610 deletions
1,234
packages/components/pie-text-input/test/component/pie-text-input.spec.ts
Large diffs are not rendered by default.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
packages/components/pie-text-input/test/helpers/page-object/selectors.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const textInput = { | ||
selectors: { | ||
container: { | ||
dataTestId: 'pie-text-input-container', | ||
}, | ||
assistiveText: { | ||
dataTestId: 'pie-text-input-assistive-text', | ||
}, | ||
input: { | ||
dataTestId: 'pie-text-input', | ||
}, | ||
}, | ||
}; | ||
export { | ||
textInput, | ||
}; |
Oops, something went wrong.