-
Notifications
You must be signed in to change notification settings - Fork 0
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Adds the framework and a sample file for running visual regression testing.