-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: move react-components playwright tests to docker
- Loading branch information
1 parent
3cc2bb0
commit c34dc73
Showing
8 changed files
with
69 additions
and
14 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
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
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,27 @@ | ||
**UI Tests** | ||
|
||
Pre-requisites: You need to have [Docker](https://docs.docker.com/get-docker/) installed locally to run UI Tests, we rely on it to provide the necessary browsers to generate consistent screenshots. | ||
|
||
Commands: | ||
|
||
```bash | ||
# Run all tests once | ||
npm run test:ui | ||
|
||
# Check for flaky tests | ||
npm run test:ui:reliability | ||
|
||
# Update snapshots | ||
npm run test:ui:update | ||
``` | ||
|
||
If you want to run the tests locally for whatever reason, as opposed to the docker image, you can run | ||
the same commands with the `--production` flag, which will run them without docker: | ||
|
||
```bash | ||
# Run all tests once | ||
npm run test:ui --production | ||
|
||
# Check for flaky tests | ||
npm run test:ui:reliability --production | ||
``` |
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,13 @@ | ||
version: '3.0' | ||
|
||
services: | ||
playwright: | ||
image: mcr.microsoft.com/playwright:v1.39.0-focal | ||
build: . | ||
volumes: | ||
- ../../:/iot-app-kit | ||
ports: | ||
- 9323:9323/tcp | ||
- 6007:6007/tcp | ||
working_dir: '/iot-app-kit/packages/react-components' | ||
command: sh -c "npx playwright install chromium" |
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
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
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
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