Skip to content

Commit

Permalink
test: Wait for more times and build main before run e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu committed Jul 18, 2024
1 parent 9f42470 commit 8a0b646
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ jobs:
run: yarn
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Build main
run: yarn build:main
- name: Run Playwright tests
run: yarn test:e2e
- uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"package:e2e": "yarn build && ./scripts/copy-ui-files.sh",
"package:test": "yarn build && ./scripts/copy-ui-files.sh && ./scripts/package-for-test.sh",
"test": "cross-env NODE_OPTIONS=--openssl-legacy-provider lerna run --parallel --load-env-files=false test",
"test:e2e": "concurrently \"cross-env BROWSER=none yarn run start:ui\" \"wait-on -t 10000 http://127.0.0.1:3000 && cd packages/e2e && yarn test:e2e\"",
"test:e2e": "concurrently \"cross-env BROWSER=none yarn run start:ui\" \"wait-on -t 30000 http://127.0.0.1:3000 && cd packages/e2e && yarn test:e2e\"",
"test:ci": "yarn build:main && yarn test",
"lint": "lerna run --stream lint",
"postinstall": "husky install",
Expand Down

0 comments on commit 8a0b646

Please sign in to comment.