* test: agenda-neue - separate timezone controls assertions to allow retries * test: agenda-neue - use dom query selectors instead of first() / eq() * test: agenda-neue - playwright * test: fix playwright setup for ci * test: playwright - remove safari + fix timezone local * test: upload playwright report * test: playwright - fix trace upload * test * test: playwright - agenda search * test: fix startdate timezone * test: playwright - agenda table events * test: playwright - remove only filter * test: remove exit early flag * test: allow longer tests * test: agenda materials dialog * test: agenda filter by area/group * test: agenda calendar view * test: agenda settings * test: jump to day * test: fix agenda jump to day timezone parse * test: increase test timeout * test: remove fail fast * test: test sharding + increase delay * test: fixes * test: use macos image * test: fixes * test: agenda color assign + future + live meeting tests * test: agenda mobile tests * test: remainder of tests for playwright + optimizations * test: red line intersection accept close value * test: add delay for agenda search tests * chore: cleanup old tests + adapt build workflow * ci: fix build workflow * ci: fix build workflow order * fix: point to playwright floor plan images + readme
58 lines
1.1 KiB
Markdown
58 lines
1.1 KiB
Markdown
# Playwright
|
|
##### Frontend testing automation tool
|
|
|
|
- [Playwright Website](https://playwright.dev/)
|
|
- [Playwright Docs](https://playwright.dev/docs/intro)
|
|
- [Playwright API Reference](https://playwright.dev/docs/api/class-test)
|
|
- [Online Trace Viewer](https://trace.playwright.dev/)
|
|
|
|
## Install
|
|
|
|
Make sure you run all commands from the `/playwright` directory, not the project root.
|
|
|
|
```
|
|
npm install
|
|
npx playwright install --with-deps
|
|
```
|
|
|
|
## Usage
|
|
|
|
Running all tests headless:
|
|
```
|
|
npm test
|
|
```
|
|
|
|
Running all tests serially in visual mode (headed):
|
|
```
|
|
npm run test:visual
|
|
```
|
|
|
|
Running all tests in debug mode:
|
|
```
|
|
npm run test:debug
|
|
```
|
|
|
|
## Advanced Usage
|
|
|
|
> Refer to the [CLI Reference](https://playwright.dev/docs/test-cli#reference) for all possible options.
|
|
|
|
Running a single test file:
|
|
```
|
|
npx playwright test foo.spec.ts
|
|
```
|
|
|
|
Running test files that have `foo` or `bar` in the filename:
|
|
```
|
|
npx playwright test foo bar
|
|
```
|
|
|
|
Running tests in a specific browser *(e.g. chromium)*:
|
|
```
|
|
npx playwright test --project=chromium
|
|
```
|
|
|
|
Running tests in headed mode:
|
|
```
|
|
npx playwright test --headed
|
|
```
|