2020-04-04 09:16:14 +03:00
|
|
|
# Installation Tests
|
|
|
|
|
2022-02-14 23:23:08 +03: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:
|
|
|
|
```bash
|
|
|
|
#!/bin/bash
|
|
|
|
source ./initialize_test.sh && initialize_test "$@" # initialize test
|
|
|
|
```
|
|
|
|
|
|
|
|
To run all tests:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./run_all_tests.sh
|
|
|
|
```
|
2022-02-15 01:52:15 +03:00
|
|
|
|
|
|
|
To install local builds of `playwright` packages in tests, do `npm_i playwright`.
|