-
Notifications
You must be signed in to change notification settings - Fork 12
chore: update playwright in ci to run only on aria changes #4452
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
2d04a06
chore: update playwright in ci to run only on aria changes
nmerget 9d48e75
fix: issue with wrong playwright path
nmerget 98856b9
Merge branch 'main' into chore-run-tests-only-if-aria-changed
nmerget 8d46833
fix: issue with wrong dependency
nmerget 5f5edfb
Merge branch 'main' into chore-run-tests-only-if-aria-changed
nmerget e187166
fix: issue with playwright configs
nmerget 418bc68
fix: issue with wrong playwright config
nmerget 2e92df0
fix: issue with wrong playwright config
nmerget 123eb06
fix: issue with wrong playwright config
nmerget ef5e593
fix: issue with checks done
nmerget eb0e156
test: changed aria
nmerget 4d3c596
fix: issue with missing branch for git diff
nmerget 1f8b470
chore: update check.ts to check against remote
nmerget 962f964
auto update snapshots (#4477)
github-actions[bot] a172cce
chore: update playwright config
nmerget dbc6ec2
auto update snapshots (#4478)
github-actions[bot] aa32f0e
test: aria snapshot trigger
nmerget 1917d80
test: without fetch repo
nmerget 4b3ce81
chore: revert test changes
nmerget af9c7cd
auto update snapshots (#4482)
github-actions[bot] 9d2815f
Merge branch 'main' into chore-run-tests-only-if-aria-changed
nmerget 5b613e1
fix: issue with comparing aria snapshots in current branch
nmerget 15ec823
Merge remote-tracking branch 'origin/main' into chore-run-tests-only-…
nmerget 808eafc
fix: resolving issue
nmerget a8ab9a8
Merge branch 'main' into chore-run-tests-only-if-aria-changed
mfranzke 2ba8702
Update tab-item-axe-core.spec.ts
mfranzke bb78d4d
Update switch-visual-snapshot.spec.ts
mfranzke fed674a
Update radio-visual-snapshot.spec.ts
mfranzke 467423b
Update link-axe-core.spec.ts
mfranzke c39424e
Update showcases/e2e/header/header-axe-core.spec.ts
mfranzke 2c14594
Update checkbox-visual-snapshot.spec.ts
mfranzke 7c72f06
Update textarea-axe-core.spec.ts
mfranzke 5d9b225
Update textarea-visual-snapshot.spec.ts
mfranzke 7d27b02
refactor: prettier
mfranzke fa57a43
Merge branch 'main' into chore-run-tests-only-if-aria-changed
mfranzke File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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,77 @@ | ||
name: 🎭 Playwright E2E | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
path: | ||
required: false | ||
type: string | ||
|
||
permissions: | ||
actions: write | ||
contents: write | ||
|
||
jobs: | ||
playwright-patternhub: | ||
name: 🧪🎭 - patternhub | ||
runs-on: ubuntu-24.04 # Use Ubuntu 24.04 explicitly | ||
container: | ||
image: mcr.microsoft.com/playwright:v${{ inputs.version }} | ||
options: --user 1001 | ||
steps: | ||
- name: ⏬ Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🔄 Init Cache | ||
uses: ./.github/actions/npm-cache | ||
|
||
- name: ⏬ Download foundations build | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: db-ux-foundations-build | ||
path: packages/foundations/build | ||
|
||
- name: ⏬ Download output | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: db-ux-output | ||
path: output | ||
|
||
- name: ⏬ Download components styles build | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: db-ux-components-build | ||
path: packages/components/build | ||
|
||
- name: ⏬ Download patternhub | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: db-ux-patternhub | ||
path: build-showcases/patternhub | ||
|
||
# We test everything for patternhub and main branch | ||
- name: 👩🔬 Test showcase with Playwright 🎭 | ||
shell: bash | ||
env: | ||
NEXT_PUBLIC_BASE_PATH: ${{ inputs.path }} | ||
run: | | ||
mkdir -p ./build-showcases${{ inputs.path }} | ||
cp -RT ./build-showcases/patternhub ./build-showcases${{ inputs.path }} | ||
npm run test:e2e --workspace=patternhub | ||
|
||
- name: 🔣 Print GitHub Report | ||
if: failure() | ||
shell: bash | ||
run: | | ||
npx playwright merge-reports --reporter github ./blob-report | ||
|
||
- name: 🆙 Upload test results | ||
if: failure() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: patternhub-playwright-results | ||
path: ./showcases/patternhub/test-results | ||
retention-days: 30 |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
94 changes: 94 additions & 0 deletions
94
...m-highContrast/should-have-same-aria-snapshot/DBStack-should-have-same-aria-snapshot.yaml
This file contains hidden or 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,94 @@ | ||
- main: | ||
- heading "DBStack" [level=1] | ||
- link "Density" | ||
- text: Functional | ||
- link "Content 1" | ||
- text: Content 2 Content 3 (Default) Regular | ||
- link "Content 1" | ||
- text: Content 2 Content 3 Expressive | ||
- link "Content 1" | ||
- text: Content 2 Content 3 | ||
- link "Variant" | ||
- text: (Default) Simple | ||
- link "Content 1" | ||
- text: Content 2 Content 3 Divider | ||
- link "Content 1" | ||
- text: Content 2 Content 3 | ||
- link "Gap" | ||
- text: none | ||
- link "Content 1" | ||
- text: Content 2 Content 3 3x-small | ||
- link "Content 1" | ||
- text: Content 2 Content 3 2x-small | ||
- link "Content 1" | ||
- text: Content 2 Content 3 x-small | ||
- link "Content 1" | ||
- text: Content 2 Content 3 (Default) small | ||
- link "Content 1" | ||
- text: Content 2 Content 3 medium | ||
- link "Content 1" | ||
- text: Content 2 Content 3 large | ||
- link "Content 1" | ||
- text: Content 2 Content 3 x-large | ||
- link "Content 1" | ||
- text: Content 2 Content 3 2x-large | ||
- link "Content 1" | ||
- text: Content 2 Content 3 3x-large | ||
- link "Content 1" | ||
- text: Content 2 Content 3 | ||
- link "Direction" | ||
- text: (Default) Column | ||
- link "Content 1" | ||
- text: Content 2 Content 3 Row | ||
- link "Content 1" | ||
- text: Content 2 Content 3 | ||
- link "Wrap" | ||
- text: "(Default) No Wrap: Column" | ||
- link "Content 1" | ||
- text: "Content 2 Content 3 No Wrap: Row" | ||
- link "Content 1" | ||
- text: "Content 2 Content 3 Wrap: Column" | ||
- link "Content 1" | ||
- text: "Content 2 Content 3 Wrap: Row" | ||
- link "Content 1" | ||
- text: Content 2 Content 3 | ||
- link "Alignment Column" | ||
- text: (Default) Stretch | ||
- link "Content 1" | ||
- text: Content 2 Content 3 Start | ||
- link "Content 1" | ||
- text: Content 2 Content 3 Center | ||
- link "Content 1" | ||
- text: Content 2 Content 3 End | ||
- link "Content 1" | ||
- text: Content 2 Content 3 | ||
- link "Alignment Row" | ||
- text: (Default) Stretch | ||
- link "Content 1" | ||
- text: Content 2 Content 3 Start | ||
- link "Content 1" | ||
- text: Content 2 Content 3 Center | ||
- link "Content 1" | ||
- text: Content 2 Content 3 End | ||
- link "Content 1" | ||
- text: Content 2 Content 3 | ||
- link "Justify Content Column" | ||
- text: (Default) Start | ||
- link "Content 1" | ||
- text: Content 2 Content 3 Center | ||
- link "Content 1" | ||
- text: Content 2 Content 3 End | ||
- link "Content 1" | ||
- text: Content 2 Content 3 Space-Between | ||
- link "Content 1" | ||
- text: Content 2 Content 3 | ||
- link "Justify Content Row" | ||
- text: (Default) Start | ||
- link "Content 1" | ||
- text: Content 2 Content 3 Center | ||
- link "Content 1" | ||
- text: Content 2 Content 3 End | ||
- link "Content 1" | ||
- text: Content 2 Content 3 Space-Between | ||
- link "Content 1" | ||
- text: Content 2 Content 3 |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.