Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR introduces Playwright/Percy visual tests.
Some steps to take before merging:
After merging this PR (and all future PRs until we change the workflow setup) to master, tests will also run automatically, so please make sure the scenes/images are correct, because the images generated from 'master' branch are automatically approved (by default, it can be changed in Project settings in Percy).
To run the tests on local machine - add PERCY_TOKEN to .env file placed in root directory of the repo.
Run:
npm install
npm run test
This will run all tests from ./tests directory. To run tests files separately run
npx percy exec -- npx playwright test_file_name