-
-
Notifications
You must be signed in to change notification settings - Fork 84
Use relative spec path to compute the snapshot directory #139
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
Conversation
* rely on cypress reported snapshot location (fix for cypress 10 changes) * move .png images rather than copying, to reduce extra files * simplify initialization with fewer global variables
* capture snapshot location for cypress 10 compatibility * revise updated version of plugins * cosmetic refactoring
Looks good to me. @Zaista, any thoughts? |
Any update on this PR? We're currently locked in the Cypress 9. |
Ok, tests don't work for node <14.0 as Optional chaining (?.) is not supported below. So we should reconsider the CI tests. But not to block the PR any further I'll merge it |
It would be great if the environment variable |
This adds compatibility with Cypress v10 and v11.
When Cypress v10 came out, the paths of generated files were changed and with that update, this lib stopped working.
An open issue (#131) reports the mismatch between paths, and based on @mighdoll fork and @csnate suggestions I am opening this PR.
The solution involves using the
Cypress.spec.relative
variable to compute the snapshot directory and adding a new environment variable namedINTEGRATION_FOLDER
to remove it from the relative spec path obtaining only the desired subpath.Example: