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

Visual regression testing #319

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

pipwilson
Copy link
Contributor

Adds the framework and a sample file for running visual regression testing.

@pipwilson pipwilson requested a review from a team as a code owner December 16, 2024 11:42
Copy link
Contributor

@alexw-moj alexw-moj Dec 16, 2024

Choose a reason for hiding this comment

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

There's more bits in the collapsed sections which we also want to compare?
Izzy found a nice .click({ multiple: true }) for the accordion sections.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, I think this is only the foundations - really the visual regression tests need integrating into the main tests in the same way as the accessibility ones I think.

@@ -137,6 +137,8 @@
"cookie-session": "^2.1.0",
"cypress": "^13.16.0",
"cypress-axe": "^1.5.0",
"cypress-image-diff-html-report": "^2.2.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

What's the HTML report for? presumably just for seeing the results in the pipeline right?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh good question, I didn't actually set that up properly. Details are here: https://github.com/kien-ht/cypress-image-diff-html-report?tab=readme-ov-file#overview

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.

3 participants