Skip to content

Commit

Permalink
Update guide to use npm scripts because of timezones
Browse files Browse the repository at this point in the history
  • Loading branch information
Duddino committed Nov 5, 2024
1 parent d525af2 commit 2ea915e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cypress/E2E_TESTING_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

MPW uses cypress to do e2e tests.
To open the gui, run `npm run dev` to open the dev server.
Then, run `npx cypress open`. Click on e2e testing and select a browser. From there, you can select a test file to run.
Alternatively, you can run `npx cypress run --browser chromium` to run all the specs in headless mode.
Then, run `npm run cy:open`. Click on e2e testing and select a browser. From there, you can select a test file to run.
Alternatively, you can run `npm run cy:ci` to run all the specs in headless mode.

## Commands

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"lint": "eslint .",
"test": "vitest",
"coverage": "vitest --coverage",
"cy:open": "npx cypress open",
"cy:run": "npx cypress run --browser chromium",
"cy:open": "TZ=Europe/London npx cypress open",
"cy:run": "TZ=Europe/London npx cypress run --browser chromium",
"cy:ci": "TZ=Europe/London start-server-and-test dev http://localhost:5500 cy:run"
},
"repository": {
Expand Down

0 comments on commit 2ea915e

Please sign in to comment.