2020-04-04 08:16:14 +02:00
|
|
|
# Installation Tests
|
|
|
|
|
|
2022-02-14 21:23:08 +01:00
|
|
|
These tests check end-to-end installation and operation of Playwright.
|
|
|
|
|
Each test is set with a separate folder that contains all scripts from
|
|
|
|
|
`fixture-scripts` folder and dummy package.json.
|
|
|
|
|
|
|
|
|
|
To create a new test, create a new file that starts with `test_*.sh`
|
|
|
|
|
with the following header:
|
2022-04-05 00:05:53 +02:00
|
|
|
|
2022-02-14 21:23:08 +01:00
|
|
|
```bash
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
source ./initialize_test.sh && initialize_test "$@" # initialize test
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
To run all tests:
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
./run_all_tests.sh
|
|
|
|
|
```
|
2022-02-14 23:52:15 +01:00
|
|
|
|
|
|
|
|
To install local builds of `playwright` packages in tests, do `npm_i playwright`.
|
2022-04-08 19:46:24 +02:00
|
|
|
|
|
|
|
|
Each test run will get its own npm state. You can use `local-playwright-registry <package>` to
|
|
|
|
|
ensure it was installed as part of the test run, and that it was a local copy.
|