-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add guidepup as screen-reader automation (#2556)
* test: add guidepup as screen-reader automation * test: screen-reader in pipeline * test: screen-reader * chore: update frm evaluations * chore: update screen-reader tests * chore: update screen-reader tests * chore: update screen-reader tests * chore: update screen-reader tests * chore: update screen-reader tests * chore: update screen-reader tests * chore: update screen-reader tests * chore: update screen-reader tests * fix: screen reader workflow for ci * fix: screen reader workflow for ci * chore: update from main * fix: issues with typescript * chore: changed tests for guidedpup * fix: issue with angular * fix: snapshots * chore: update from main * chore: update guidepup tests * fix: issue with download showcase * chore: remove webkit from screen reader test * fix: path for recordings * fix: issue with line ending * test: if voiceover.next works for labels * fix: issue with voiceOver test * test: guidepup * test: guidepup * test: guidepup * test: guidepup * test: guidepup * test: guidepup * test: guidepup * test: guidepup * test: guidepup * test: guidepup * test: guidepup * test: guidepup * test: guidepup * fix: linting issue * fix: linting issue * test: guidepup * test: guidepup * test: guidepup
- Loading branch information
Showing
35 changed files
with
901 additions
and
37 deletions.
There are no files selected for viewing
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
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,44 @@ | ||
--- | ||
name: "Playwright Cache Action" | ||
description: "Initialize Playwright Cache" | ||
inputs: | ||
version: | ||
description: "Playwright version" | ||
required: false | ||
runs: | ||
using: "composite" | ||
steps: | ||
- name: 🆙 Set env for os | ||
shell: bash | ||
env: | ||
OS: ${{ runner.os }} | ||
run: | | ||
if [[ $OS == "Windows" ]]; then | ||
echo "CACHE_PATH=C:\Users\runneradmin\AppData\Local\ms-playwright" >> "$GITHUB_ENV" | ||
echo "BROWSERS=chromium firefox" >> "$GITHUB_ENV" | ||
echo "OS=windows" >> "$GITHUB_ENV" | ||
else | ||
echo "CACHE_PATH=~/Library/Caches/ms-playwright" >> "$GITHUB_ENV" | ||
echo "BROWSERS=webkit chromium firefox" >> "$GITHUB_ENV" | ||
echo "OS=macos" >> "$GITHUB_ENV" | ||
fi | ||
- name: 🆒 Cache Playwright binaries | ||
uses: actions/cache@v4 | ||
id: playwright-cache | ||
with: | ||
path: ${{ env.CACHE_PATH }} | ||
key: "${{ runner.os }}-playwright-${{ inputs.version }}" | ||
restore-keys: | | ||
${{ runner.os }}-playwright- | ||
- name: 🎄🎸🥊 Log Cache Hit | ||
shell: bash | ||
env: | ||
HIT: ${{ steps.playwright-cache.outputs.cache-hit }} | ||
run: echo $HIT | ||
|
||
- name: ⏬ Install Playwright's dependencies | ||
shell: bash | ||
if: steps.playwright-cache.outputs.cache-hit != 'true' | ||
run: npx --no -- playwright install --with-deps ${{ env.BROWSERS }} |
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,28 @@ | ||
name: 🎭 Init Playwright | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
|
||
jobs: | ||
init-playwright: | ||
name: 🎭 Init Playwright - ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-13, windows-2022] | ||
steps: | ||
- name: ⏬ Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🔄 Init Cache Default | ||
uses: ./.github/actions/npm-cache | ||
|
||
- name: 🔄 Init Playwright Cache | ||
uses: ./.github/actions/playwright-cache | ||
with: | ||
version: ${{ inputs.version }} |
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,67 @@ | ||
name: 🎭 Playwright Screen Reader | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
version: | ||
required: true | ||
type: string | ||
|
||
permissions: | ||
actions: write | ||
contents: write | ||
|
||
jobs: | ||
playwright-screen-reader: | ||
name: 🧪🎭 - screen-reader - ${{ matrix.os }} - react - ${{ matrix.shardIndex }}/${{ matrix.shardTotal }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-13, windows-2022] | ||
shardIndex: [1, 2] | ||
shardTotal: [2] | ||
steps: | ||
- name: ⏬ Checkout repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: 🦮 Guidepup Setup | ||
uses: guidepup/[email protected] | ||
with: | ||
record: true | ||
|
||
- name: 🔄 Init Cache | ||
uses: ./.github/actions/npm-cache | ||
|
||
- name: 🔄 Init Playwright Cache | ||
uses: ./.github/actions/playwright-cache | ||
with: | ||
version: ${{ inputs.version }} | ||
|
||
- name: ⏬ Download react-showcase | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: db-ui-react-showcase | ||
path: build-showcases/react-showcase | ||
|
||
- name: 👩🔬 Test showcase with Playwright 🎭 | ||
env: | ||
showcase: react-showcase | ||
run: | | ||
npm run test:screen-reader:${{ env.OS }} --workspace=react-showcase -- --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }} | ||
- name: 🆙 Upload test results | ||
if: failure() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: react-screen-reader-${{ matrix.os }}-${{ matrix.shardIndex }} | ||
path: ./showcases/react-showcase/test-results | ||
retention-days: 30 | ||
|
||
- name: 🆙 Upload test results | ||
if: failure() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: react-recordings-${{ matrix.os }}-${{ matrix.shardIndex }} | ||
path: ./showcases/react-showcase/recordings | ||
retention-days: 30 |
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
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
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
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
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 |
---|---|---|
|
@@ -7,3 +7,4 @@ output | |
build-outputs | ||
build-showcases | ||
packages/foundations/scripts/generate-icon-fonts/styles/** | ||
**/__snapshots__ |
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
Oops, something went wrong.