Skip to content
Snippets Groups Projects
Unverified Commit 4e4d20ad authored by Crazypkr1099's avatar Crazypkr1099 Committed by GitHub
Browse files

Update Visual Regression README File (#1689)

parent 8167ea8a
No related branches found
No related tags found
No related merge requests found
......@@ -37,15 +37,20 @@ First start the dev server:
```sh
HTTPS=true yarn start
```
Next, run the standartised docker container and launch the visual regression tests from within it.
Next, navigate to the root of your project folder, run the standartised docker container, and launch the visual regression tests from within it.
```sh
# Run docker container
docker run --rm --network host -v $(pwd):/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.37.0-jammy /bin/bash
# If you recieve an error such as "docker: invalid reference format", please instead use the following command:
docker run --rm --network host -v ${pwd}:/work/ -w /work/ -it mcr.microsoft.com/playwright:v1.37.0-jammy /bin/bash
# Run the VRT tests: important - they MUST be ran against a HTTPS server
E2E_START_URL=https://192.168.0.178:3001 yarn vrt
# To update snapshots, use the following command:
E2E_START_URL=https://192.168.0.178:3001 yarn vrt --update-snapshots
```
#### Running against a remote server
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment