-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e34b0de
commit 4c8cba8
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Testing ipyaladin interactively | ||
|
||
## Setup and run the tests | ||
|
||
At the root of the repo (not here): | ||
|
||
```sh | ||
npm install | ||
pip install . | ||
pip install jupyterlab | ||
npx playwright install chromium | ||
npx playwright test | ||
``` | ||
|
||
There is also a GUI to see the tests execute steps by steps: | ||
|
||
```sh | ||
npx playwright test --ui | ||
``` | ||
|
||
## How to extend the tests | ||
|
||
We have access to [Playwright](https://playwright.dev/docs/intro) and | ||
[Galata](https://github.com/jupyterlab/jupyterlab/tree/main/galata)' s APIs. | ||
|
||
The interactive tests generation of playwright can be useful: | ||
|
||
```sh | ||
npx playwright codegen playwright.dev | ||
``` | ||
|
||
but it does not know about all the helpers methods that Galata introduces to help with | ||
notebooks testing. | ||
|
||
## Debug | ||
|
||
```sh | ||
npx playwright test my_test.spec.js --debug | ||
``` |