Skip to content
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

test: screen-reader #7

Open
wants to merge 58 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
445b74e
test: screen-reader
nmerget Apr 22, 2024
3003d9b
test: screen-reader
nmerget Apr 22, 2024
732e9a2
test: screen-reader
nmerget Apr 22, 2024
ae4a0f6
test: screen-reader
nmerget Apr 22, 2024
dc9abac
test: screen-reader
nmerget Apr 22, 2024
5ab7375
test: screen-reader
nmerget Apr 22, 2024
6e74b1b
test: screen-reader
nmerget Apr 22, 2024
92c36b6
test: screen-reader
nmerget Apr 22, 2024
74b68d8
test: screen-reader
nmerget Apr 22, 2024
5e6fd39
test: screen-reader
nmerget Apr 22, 2024
35a03f0
test: screen-reader
nmerget Apr 22, 2024
be29c64
test: screen-reader
nmerget Apr 22, 2024
09a4df9
test: screen-reader
nmerget Apr 22, 2024
8f18d56
test: screen-reader
nmerget Apr 22, 2024
09d6e0f
test: screen-reader
nmerget Apr 22, 2024
765840a
test: screen-reader
nmerget Apr 22, 2024
eb997f0
test: screen-reader
nmerget Apr 23, 2024
8991031
test: screen-reader
nmerget Apr 23, 2024
0f2218b
test: screen-reader
nmerget Apr 23, 2024
56ac764
test: screen-reader
nmerget Apr 23, 2024
02a9823
test: screen-reader
nmerget Apr 23, 2024
c08a94a
test: screen-reader
nmerget Apr 23, 2024
bf9c3ea
test: screen-reader
nmerget Apr 23, 2024
ac98ca2
test: screen-reader
nmerget Apr 23, 2024
7ee0d67
test: screen-reader
nmerget Apr 23, 2024
e69ae6f
test: screen-reader
nmerget Apr 23, 2024
a1192d6
test: screen-reader
nmerget Apr 23, 2024
5aa7946
test: screen-reader
nmerget Apr 23, 2024
bc408ae
test: screen-reader
nmerget Apr 23, 2024
33715d2
test: screen-reader
nmerget Apr 23, 2024
a3f23de
test: screen-reader
nmerget Apr 23, 2024
751a6d5
test: screen-reader
nmerget Apr 23, 2024
2d38e97
test: screen-reader
nmerget Apr 24, 2024
8cf39af
test: screen-reader
nmerget Apr 24, 2024
8d7059d
test: screen-reader
nmerget Apr 24, 2024
14fc8a9
test: screen-reader
nmerget Apr 24, 2024
4e9354a
test: screen-reader
nmerget Apr 24, 2024
a955591
test: screen-reader
nmerget Apr 24, 2024
2681844
test: screen-reader
nmerget Apr 24, 2024
435cf27
test: screen-reader
nmerget Apr 24, 2024
36b97f3
test: screen-reader
nmerget Apr 24, 2024
b0e164b
test: screen-reader
nmerget Apr 24, 2024
f5f529e
test: screen-reader
nmerget Apr 24, 2024
dbe7d13
test: screen-reader
nmerget Apr 24, 2024
8c83399
test: screen-reader
nmerget Apr 24, 2024
d42613e
test: screen-reader
nmerget Apr 24, 2024
c24449a
test: screen-reader
nmerget Apr 24, 2024
b1e89c8
test: screen-reader
nmerget Apr 24, 2024
dbbff41
test: screen-reader
nmerget Apr 24, 2024
ed6cdf3
test: screen-reader
nmerget Apr 24, 2024
f0d03c3
test: screen-reader
nmerget Apr 24, 2024
4f7a521
test: screen-reader
nmerget Apr 24, 2024
e3f0f5c
test: screen-reader
nmerget Apr 24, 2024
57a8605
test: screen-reader
nmerget Apr 24, 2024
e6171cc
test: screen-reader
nmerget Apr 25, 2024
3cd6f5d
test: screen-reader
nmerget Apr 25, 2024
8103d21
test: screen-reader
nmerget Apr 25, 2024
94aa5d1
Merge branch 'main' into test-screen-reader
nmerget Aug 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions .github/actions/npm-cache/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: "NPM Cache Action"
description: "Initialize NPM Cache"
inputs:
nodeModulesPath:
description: "Path for node_modules"
required: false
default: "**node_modules"
packageLockPath:
description: "Path for package-lock.json"
required: false
default: "**/package-lock.json"
nodeVersion:
description: "Node version"
required: false
default: "20"
runs:
using: "composite"
steps:
- name: 🆙 Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.nodeVersion }}
cache-dependency-path: screen-reader-test/package-lock.json

- name: Display node and npm version
shell: bash
run: |
node --version
npm --version

- name: 🆒 Init Cache
uses: actions/cache@v4
id: "cache"
with:
path: screen-reader-test/node-modules
key: ${{ runner.os }}-node-${{ inputs.nodeVersion }}-${{ hashFiles(inputs.packageLockPath) }}
restore-keys: |
${{ runner.os }}-node-${{ inputs.nodeVersion }}

- name: ⏬ NPM ci
shell: bash
working-directory: screen-reader-test
if: steps.cache.outputs.cache-hit != 'true'
run: |
npm ci
68 changes: 68 additions & 0 deletions .github/workflows/02-e2e-screen-reader.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: 🎭 Playwright Screen Reader

on:
workflow_call:

permissions:
actions: write
contents: write

jobs:
playwright-screen-reader:
name: 🧪🎭 - screen-reader - ${{ matrix.os }} - ${{ matrix.framework }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [windows-latest]
framework: [react]
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4

- name: 🔄 Init Cache Default
uses: ./.github/actions/npm-cache

- name: 🦮 Guidepup Setup
uses: guidepup/[email protected]
with:
record: true

- name: 🆙 Set env for os
shell: bash
env:
OS: ${{ matrix.os }}
run: |
if [[ $OS == "windows-latest" ]]; then
echo "BROWSER=chromium" >> "$GITHUB_ENV"
else
echo "BROWSER=webkit" >> "$GITHUB_ENV"
fi


- uses: actions/cache@v4
id: playwright-cache
with:
path: '~/.cache/ms-playwright'
key: '${{ runner.os }}-playwright-1.43.1'
restore-keys: |
${{ runner.os }}-playwright-

- name: Install Playwright's dependencies
if: steps.playwright-cache.outputs.cache-hit != 'true'
run: npx playwright install --with-deps ${{ env.BROWSER }}

- name: 👩‍🔬 Test showcase with Playwright 🎭
working-directory: screen-reader-test
env:
HOME: /root
run: |
npm run test:screen-reader:${{ matrix.os }}

- name: 🆙 Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.framework }}-screen-reader-${{ matrix.os }}
path: ./screen-reader-test/${{ matrix.framework }}-showcase/test-results
retention-days: 30
13 changes: 13 additions & 0 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
name: Default Pipeline

on:
pull_request:
push:
branches:
- "main"

jobs:
test-screen-reader:
uses: ./.github/workflows/02-e2e-screen-reader.yml

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,3 +105,4 @@ dist

# Setting files for IntelliJ / WebStorm
.idea/
/screen-reader-test/react-showcase/test-results/
Loading
Loading