Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/percy visual testing #1801

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

awilczura
Copy link
Contributor

This PR introduces Playwright/Percy visual tests.

Some steps to take before merging:

  • PERCY_ENV repository secret needs to be set with content: PERCY_TOKEN=xeokit-sdk-project-percy-token
  • create 'percy' PR label - after merging this PR Percy tests will run on all new PRs after labeling with 'percy'

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants