mirror of
https://github.com/UniversityOfHelsinkiCS/oodikone.git
synced 2026-10-12 19:03:39 +03:00
[Readme] Update readme to match new e2e changes
This commit is contained in:
@@ -179,10 +179,11 @@ We use Playwright for end-to-end testing.
|
|||||||
|
|
||||||
Playwright
|
Playwright
|
||||||
|
|
||||||
- E2E specs are in the `playwright/` folder.
|
- E2E specs are in the `e2e/` folder.
|
||||||
- Run all migrated specs with `npm run playwright`.
|
- Run all e2e specs with `npm run playwright`.
|
||||||
- Run headed mode with `npm run playwright:headed`.
|
- Run in headed mode with `npm run playwright:headed`.
|
||||||
- Open UI mode with `npm run playwright:ui`.
|
- Open in UI mode with `npm run playwright:ui`.
|
||||||
|
- If using a command that runs `docker-compose.ci.yml`, remember to add CI=true before the playwright command, eg. `CI=true npm run playwright`.
|
||||||
|
|
||||||
Continuous integration (CI) works with Github actions and is defined in workflow files in `.github/workflows` folder:
|
Continuous integration (CI) works with Github actions and is defined in workflow files in `.github/workflows` folder:
|
||||||
|
|
||||||
@@ -237,7 +238,7 @@ npm run playwright -- <file path>
|
|||||||
For example:
|
For example:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
npm run playwright -- playwright/Language_center.js
|
npm run playwright -- e2e/Language_center.js
|
||||||
```
|
```
|
||||||
|
|
||||||
Running tests in headless mode may also help if your browser keeps crashing when running tests interactively. If you want to run all tests, use:
|
Running tests in headless mode may also help if your browser keeps crashing when running tests interactively. If you want to run all tests, use:
|
||||||
|
|||||||
Reference in New Issue
Block a user