Skip to content

Commit

Permalink
test: fix storybook test runner (#1755)
Browse files Browse the repository at this point in the history
* test: fix storybook test runner

* test: install playwright
  • Loading branch information
hkfb authored Nov 6, 2023
1 parent 436bb90 commit 7ee1749
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/typescript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,11 @@ jobs:
- name: Serve Storybook and run tests
env:
PORT: 8080
HOST: 127.0.0.1
PORT: 8080
HOST: 127.0.0.1
run: |
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx playwright install" \
"npx http-server storybook-static --port $PORT -a $HOST" \
"npx wait-on http://$HOST:$PORT/ && npm run storybook:test -- --ci --url http://$HOST:$PORT/"
npm install concurrently http-server wait-on
npx playwright install
npx concurrently -k -s first -n "SB,TEST" -c "magenta,blue" \
"npx http-server storybook-static --port $PORT -a $HOST" \
"npx wait-on http://$HOST:$PORT/ && npm run storybook:test -- --ci --url http://$HOST:$PORT/"

0 comments on commit 7ee1749

Please sign in to comment.