-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Migrate from Cypress.env() to Cypress.expose() #1021
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
Open
cacieprins
wants to merge
5
commits into
master
Choose a base branch
from
15.10.0
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✅ Deploy Preview for cypress-example-kitchensink ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
cypress-example-kitchensink
|
||||||||||||||||||||||||||||||||||||||||||||||||||||
| Project |
cypress-example-kitchensink
|
| Branch Review |
15.10.0
|
| Run status |
|
| Run duration | 05m 49s |
| Commit |
|
| Committer | Cacie Prins |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
2
|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
121
|
| View all changes introduced in this branch ↗︎ | |
UI Coverage
29.29%
|
|
|---|---|
|
|
27
|
|
|
35
|
Accessibility
90.81%
|
|
|---|---|
|
|
5 critical
2 serious
4 moderate
0 minor
|
|
|
221
|
Tests for review
cypress\e2e\2-advanced-examples\cypress_api.cy.js • 1 failed test
| Test | Artifacts | |
|---|---|---|
| Cypress APIs > Cypress.expose() > Get environment variables |
Test Replay
Screenshots
|
|
cypress\e2e\2-advanced-examples\misc.cy.js • 1 failed test
| Test | Artifacts | |
|---|---|---|
| Misc > cy.exec() - execute a system command |
Test Replay
Screenshots
|
|
Co-authored-by: Ryan Manuel <[email protected]>
ryanthemanuel
approved these changes
Jan 30, 2026
cypress-example-kitchensink
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Project |
cypress-example-kitchensink
|
| Branch Review |
15.10.0
|
| Run status |
|
| Run duration | 06m 04s |
| Commit |
|
| Committer | Cacie Prins |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
6
|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
363
|
| View all changes introduced in this branch ↗︎ | |
UI Coverage
29.29%
|
|
|---|---|
|
|
27
|
|
|
35
|
Accessibility
90.82%
|
|
|---|---|
|
|
5 critical
2 serious
4 moderate
0 minor
|
|
|
233
|
Tests for review
cypress_api.cy.js • 1 failed test • 3x-electron
| Test | Artifacts | |
|---|---|---|
| Cypress APIs > Cypress.expose() > Get environment variables |
Test Replay
Screenshots
|
|
misc.cy.js • 1 failed test • 3x-electron
| Test | Artifacts | |
|---|---|---|
| Misc > cy.exec() - execute a system command |
Test Replay
Screenshots
|
|
cypress_api.cy.js • 1 failed test • 2x-firefox
| Test | Artifacts | |
|---|---|---|
| Cypress APIs > Cypress.expose() > Get environment variables |
Screenshots
|
|
misc.cy.js • 1 failed test • 2x-firefox
| Test | Artifacts | |
|---|---|---|
| Misc > cy.exec() - execute a system command |
Screenshots
|
|
misc.cy.js • 1 failed test • 2x-chrome
| Test | Artifacts | |
|---|---|---|
| Misc > cy.exec() - execute a system command |
Test Replay
Screenshots
|
|
The first 5 failed specs are shown, see all 6 specs in Cypress Cloud.
cypress-example-kitchensink
|
||||||||||||||||||||||||||||||||||||||||
| Project |
cypress-example-kitchensink
|
| Branch Review |
15.10.0
|
| Run status |
|
| Run duration | 02m 34s |
| Commit |
|
| Committer | Cacie Prins |
| View all properties for this run ↗︎ | |
| Test results | |
|---|---|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
0
|
|
|
123
|
| View all changes introduced in this branch ↗︎ | |
UI Coverage
29.29%
|
|
|---|---|
|
|
27
|
|
|
35
|
Accessibility
87.67%
|
|
|---|---|
|
|
5 critical
3 serious
4 moderate
0 minor
|
|
|
534
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Migrating away from Cypress.env() so that scaffolded projects will not include deprecated API use. Note that scaffolded configs are generated by Cypress' config package - this is just used for scaffolding example tests.
This PR will fail until we release Cypress 5.10, but this branch needs to be here for Cypress' CI process so that it can package the examples into the binary.
Pre-merge checklist: