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

Add Percy visual regression testing #2551

Merged
merged 6 commits into from
Feb 24, 2022
Merged

Add Percy visual regression testing #2551

merged 6 commits into from
Feb 24, 2022

Commits on Feb 24, 2022

  1. Install @percy/cli and run tests using percy

    This installs the @percy/cli that we need to run our tests using Percy.
    Follows the Percy documentation https://docs.percy.io/docs/puppeteer
    
    This commit does not include setting up our Puppeteer tests to capture
    any Percy snapshots - this commit installs what we need, ready to go.
    Vanita Barrett committed Feb 24, 2022
    Configuration menu
    Copy the full SHA
    978a5d3 View commit details
    Browse the repository at this point in the history
  2. Install @percy/puppeteer and setup tests to capture snapshots

    Adds a test which takes a snapshot of each component 'default' example.
    Vanita Barrett committed Feb 24, 2022
    Configuration menu
    Copy the full SHA
    b7e1d19 View commit details
    Browse the repository at this point in the history
  3. Include snapshots with JavaScript disabled

    Enhances the test we added in the previous commit, so that we're now
    generating snapshots of each component 'default' example when JavaScript
    is enabled and when it's disabled.
    
    We need to make sure each snapshot has a unique name, so we prefix the snapshot name
    with text to indicate whether it was taken with JavaScript enabled or disabled.
    Vanita Barrett committed Feb 24, 2022
    Configuration menu
    Copy the full SHA
    d246a09 View commit details
    Browse the repository at this point in the history
  4. Add documentation for Percy visual regression testing

    Add documentation to explain how we use Percy, who is responsible for
    reviewing it, and what screenshots are taken.
    Vanita Barrett committed Feb 24, 2022
    Configuration menu
    Copy the full SHA
    c35fb2c View commit details
    Browse the repository at this point in the history
  5. Add documentation for PRs from forks

    Vanita Barrett committed Feb 24, 2022
    Configuration menu
    Copy the full SHA
    8b09a33 View commit details
    Browse the repository at this point in the history
  6. Docs improvements from review

    Vanita Barrett committed Feb 24, 2022
    Configuration menu
    Copy the full SHA
    a2fc893 View commit details
    Browse the repository at this point in the history