Skip to content

Commit

Permalink
feat: a11y regression testing for storybook (#733)
Browse files Browse the repository at this point in the history
Closes D2IQ-90239
  • Loading branch information
nataliepina authored Jun 9, 2022
1 parent 70414d8 commit a715bfb
Show file tree
Hide file tree
Showing 5 changed files with 6,143 additions and 9,901 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: npm ci
run: npm install
- name: Prebuild storybook
run: npm run prebuild:storybook
# πŸ‘‡ Adds Chromatic as a step in the workflow
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
cache: "npm"

- name: Install Dependencies πŸ”§
run: npm ci
run: npm install

- name: Lint 🧹
run: npm run lint
Expand All @@ -36,7 +36,7 @@ jobs:
- name: Unit Tests πŸ§ͺ
run: npm test

- name: Cypress run
- name: Cypress run πŸ”„
uses: cypress-io/github-action@v2
with:
start: npm run test:integration
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/storybook-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Storybook Tests
on: push
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- name: Install Dependencies πŸ”§
run: npm install
- name: Install Playwright 🎭
run: npx playwright install --with-deps
- name: Run Storybook Tests πŸ“š
run: npm run build:storybook --quiet
- name: Serve Storybook and Run Tests πŸ“–
run: |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook_static --port 6006 --silent" \
"npx wait-on tcp:6006 && npm run test-storybook"
Loading

0 comments on commit a715bfb

Please sign in to comment.