2022-05-10 10:31:46 +03:00
|
|
|
# UI Sanity testing using play-wright
|
|
|
|
|
|
|
|
## Prepare environment with docker to test final product.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
rush update
|
|
|
|
rush build
|
|
|
|
rush bundle
|
|
|
|
rush docker:build
|
|
|
|
./prepare.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
### Restore to pure DB
|
|
|
|
|
|
|
|
To purge content of sanity workspace following command could be used.
|
|
|
|
|
|
|
|
```bash
|
2022-06-15 06:01:21 +03:00
|
|
|
./restore-workspace.sh
|
2022-05-10 10:31:46 +03:00
|
|
|
```
|
|
|
|
|
2023-10-17 12:58:56 +03:00
|
|
|
## Prepare local dev environment
|
2022-05-10 10:31:46 +03:00
|
|
|
|
|
|
|
```bash
|
|
|
|
rush update
|
|
|
|
rush build
|
|
|
|
rush bundle
|
|
|
|
./create-local.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
### Restore to pure DB for Local setup
|
|
|
|
|
|
|
|
To purge content of sanity workspace following command could be used.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
./restore-local.sh
|
|
|
|
```
|
|
|
|
|
|
|
|
## Running UI tests
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cd ./sanity
|
|
|
|
rushx uitest # for docker setup
|
|
|
|
rushx dev-uitest # for dev setup
|
|
|
|
```
|
|
|
|
|
|
|
|
## Debugging UI tests
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cd ./sanity
|
|
|
|
rushx debug -g test-name # for docker setup
|
|
|
|
rushx dev-debug -g test-name # for local setup
|
|
|
|
```
|
|
|
|
|
|
|
|
## Capturing new testing scenarios
|
|
|
|
|
|
|
|
```bash
|
|
|
|
rushx codegen # for docker setup
|
2022-06-15 06:01:21 +03:00
|
|
|
rushx dev-codegen # for local setup
|
2022-05-10 10:31:46 +03:00
|
|
|
```
|
|
|
|
|
|
|
|
## Test authoring.
|
|
|
|
|
|
|
|
Please update all navigation with using PlatformURI for CI and dev environment compatible testing.
|