test: Cypress 15 test-project preparation #1397
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Situation
PR cypress-io/cypress#32238 plans to update execa in Cypress from [email protected] to [email protected] and for cy.exec() to yield property
exitCode
instead ofcode
.To adapt scaffold tests to work with both Cypress 14 and 15, PR cypress-io/cypress-example-kitchensink#984 has been proposed, which would adapt the cypress/e2e/2-advanced-examples/misc.cy.js test spec accordingly.
These changes will be needed in the corresponding scaffolded test spec factory/test-project/cypress/e2e/2-advanced-examples/misc.cy.js in this repo during the planned publication of Cypress 15.
Change
To avoid extra work and corresponding delays on the release day of Cypress
15.0.0
. Test changes to factory/test-project/cypress/e2e/2-advanced-examples/misc.cy.js are added in preparation for Cypress 15 Docker image generation now.In the test "'cy.exec() - execute a system command'" conditional logic is added which allows tests to be successful with Cypress 14 and below, and the planned Cypress 15 version.
Test
This currently tests against Cypress
14.5.4
. The repo is not set up to test against beta / pre-release versions of Cypress.