922 B
922 B
Visual Test README
This README provides instructions for running visual tests for documentation
Prerequisites
Install dependencies in ./docs
Install playwright binaries npx playwright install --with-deps
Run tests
To run the visual tests, follow these steps:
-
First time you run the tests locally you will need to generate
golden images:npm run docs:visual-test:update-screenshot -
Once done run tests:
npm run docs:visual-test
Good to know
-
The framework will run the docs webserver if not already started
-
You can target diff environment using
BASE_URLenv variable -
To run the test in staging
https://dev.handsontable.com/docsyou need to provide additional cookie value as env variable -
You can set environment variables using
.envfile - just renamedocs/tests/.env.example -
You can run the tests using GH workflow