-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
chore: fix e2e #2961
chore: fix e2e #2961
Conversation
Thais one fixes the e2e tests but in the process it also removes the image snapshot tests which is why I will not merge this. Thank you nevertheless. |
@knsv This doesn’t remove the image snapshots. It just uses a different dependency to record image snapshots. |
The root issue was: cypress-io/cypress#3090. |
@Yash-Singh1 cypress has been upgraded. So you'll have to move the changes in |
When running the branch in my machine, the following screenshots had diff and 2 other tests failed. I'm wondering why this happened to just these 2 diagrams.
This might be a config issue with macbook screen resolution. We could either increase the range to 970 or find some way to limit browser size and it should be fixed. |
cy.get('svg').each(($el) => { | ||
cy.wrap($el).toMatchImageSnapshot(name); | ||
}); | ||
// cy.matchImageSnapshot('conf-and-directives.spec-when-rendering-several-diagrams-diagram-1'); |
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.
Should clean up all these comments.
module.exports = (on, config) => { | ||
addMatchImageSnapshotPlugin(on, config); | ||
// addMatchImageSnapshotPlugin(on, config); | ||
}; |
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.
Remove redundant module.exports
📑 Summary
Fixes the e2e problems with the image snapshots and prevents double running workflows on PRs.
📏 Design Decisions
Describe the way your implementation works or what design decisions you made if applicable.
Moved to
cypress-plugin-snapshots
instead of the image snapshots plugin.📋 Tasks
Make sure you
develop
branch