Skip to content
This repository was archived by the owner on Feb 16, 2023. It is now read-only.

Update testing docs #278

Merged
merged 1 commit into from
Nov 11, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,22 +78,21 @@ jlpm run build:test
jlpm run test
```

There are also end to end tests to cover higher level user interactions, located in the `app/test` folder. To run these tests:
There are also end to end tests to cover higher level user interactions, located in the [`ui-tests`](./ui-tests) folder. To run these tests:

```bash
cd ui-tests
# start a new Jupyter server in a terminal
npm start
jlpm start

# run the end to end tests
jlpm run test:e2e
# in a new terminal, run the tests
jlpm test
```

# to run in headful mode
PWDEBUG=1 jlpm run test:e2e
The `test` script calls the Playwright test runner. You can pass additional arguments to `playwright` by appending parameters to the command. For example to run the test in headed mode, `jlpm test --headed`.

# to run with firefox as the browser
BROWSER=firefox jlpm run test:e2e
```
Checkout the [Playwright Command Line Reference](https://playwright.dev/docs/test-cli/) for more information about the available command line options.

Running the end to end tests in headful mode will trigger something like the following:

![end-to-end-smoke](https://user-images.githubusercontent.com/591645/106299215-34a67b00-6255-11eb-854c-756a8790246b.gif)
![playwight-headed-demo](https://user-images.githubusercontent.com/591645/141274633-ca9f9c2f-eef6-430e-9228-a35827f8133d.gif)