Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Add visual tests using Percy in Cypress #8610

Merged
merged 7 commits into from
May 17, 2022
Merged

Add visual tests using Percy in Cypress #8610

merged 7 commits into from
May 17, 2022

Conversation

t3chguy
Copy link
Member

@t3chguy t3chguy commented May 16, 2022


This change is marked as an internal change (Task), so will not be included in the changelog.

@t3chguy t3chguy added the T-Task Refactoring, enabling or disabling functionality, other engineering tasks label May 16, 2022
@t3chguy t3chguy marked this pull request as ready for review May 16, 2022 13:44
@t3chguy t3chguy requested a review from a team as a code owner May 16, 2022 13:44
for Safari, Firefox, Chrome & Edge, allowing us to spot visual regressions before they become release regressions.
Right now we run it as part of the standard Pull Request CI automation but due to only having 25k screenshots/month,
and each `cy.percySnapshot()` call results in 8 screenshots (4 browsers, 2 sizes) this could quickly be exhausted and
at that point we would likely run it on a CRON interval or before releases.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we should wrap calls to percy in a flag that can be disabled so that we can separate out runs with percy? unless there's already a way?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Percy will automatically no-op where Cypress is not ran from within percy, i.e percy exec -- - so for local testing cypress will behave the same as without percy, except with some extra log lines

image

In future we may additionally also create a label e.g X-Needs-Percy to control whether a PR needs to run the percy suite

@t3chguy t3chguy requested a review from novocaine May 16, 2022 14:09
@t3chguy t3chguy enabled auto-merge (squash) May 17, 2022 15:10
@t3chguy t3chguy merged commit d9b7e07 into develop May 17, 2022
@t3chguy t3chguy deleted the t3chguy/percy branch May 17, 2022 15:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-Task Refactoring, enabling or disabling functionality, other engineering tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants