Skip to content

Commit

Permalink
test: rename PW script name so it's unaffected with jest tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KrupaPammi committed Oct 6, 2023
1 parent 40501c8 commit 822daa6
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ jobs:
run: yarn playwright install --with-deps chromium

- name: Run end-to-end tests
run: yarn test:e2e:ci
run: yarn test:playwright:ci
continue-on-error: false
env:
NODE_OPTIONS: --max_old_space_size=4096
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ yarn-error.log*
/tests_output
/test-results/
/playwright-report/
/playwright/.cache/
/playwright-tests/.cache/
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"styleguide:build": "styleguidist build",
"postinstall": "yarn run build",
"build": "rm -rf dist && NODE_ENV=production babel src --out-dir dist --copy-files --ignore __tests__,spec.js,test.js",
"test:e2e": "playwright test --project=chromium",
"test:e2e:ci": "NODE_ENV=development; start-server-and-test styleguide http://localhost:6060 test:e2e",
"test:e2e:local": "export NODE_ENV=development; start-server-and-test styleguide http://localhost:6060 test:e2e",
"test:playwright": "playwright-tests test --project=chromium",
"test:playwright:ci": "NODE_ENV=development; start-server-and-test styleguide http://localhost:6060 test:e2e",
"test:playwright:local": "export NODE_ENV=development; start-server-and-test styleguide http://localhost:6060 test:e2e",
"cy:run": "export NODE_ENV=development; cypress run --headless --browser chrome",
"cy:open": "export NODE_ENV=development; cypress open",
"feature-test": "run-p --race styleguide cy:run",
Expand Down
62 changes: 62 additions & 0 deletions playwright-report/index.html

Large diffs are not rendered by default.

0 comments on commit 822daa6

Please sign in to comment.