Skip to content

Conversation

MikeMcC399
Copy link
Collaborator

@MikeMcC399 MikeMcC399 commented Aug 14, 2025

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 of code.

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.

cd factory
docker compose build factory
cd test-project
set -a && . ../.env && set +a
docker compose run --build --rm test-factory-all-included

@cypress-app-bot
Copy link

@MikeMcC399
Copy link
Collaborator Author

@MikeMcC399 MikeMcC399 self-assigned this Aug 14, 2025
@MikeMcC399 MikeMcC399 requested a review from AtofStryker August 14, 2025 12:37
@MikeMcC399 MikeMcC399 marked this pull request as ready for review August 15, 2025 13:36
@jennifer-shehane jennifer-shehane merged commit 77fde56 into cypress-io:master Aug 15, 2025
51 checks passed
@MikeMcC399 MikeMcC399 deleted the cy-15-test-project-prep branch August 15, 2025 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants