mirror of
https://github.com/cypress-io/cypress.git
synced 2026-02-18 21:21:14 -06:00
9.5 KiB
9.5 KiB
12.6.0
Released 02/15/2023
Features:
- Added a new CLI flag, called
--auto-cancel-after-failures, that overrides the project-level "Auto Cancellation" value when recording to the Cloud. This gives Cloud users on Business and Enterprise plans the flexibility to alter the auto-cancellation value per run. Addressed in #25237. - It is now possible to overwrite query commands using
Cypress.Commands.overwriteQuery. Addressed in #25078. - Added
Cypress.require()for including dependencies within thecy.origin()callback. This change removed support for usingrequire()andimport()directly within the callback because we found that it impacted performance not only for spec files using them within thecy.origin()callback, but even for spec files that did not use them. Addresses #24976. - Added the ability to open the failing test in the IDE from the Debug page before needing to re-run the test. Addressed in #24850.
Bugfixes:
- When a Cloud user is apart of multiple Cloud organizations, the Connect to Cloud setup now shows the correct organizational prompts when connecting a new project. Fixes #25520.
- Fixed an issue where Cypress would fail to load any specs if the project
specPatternincluded a resource that could not be accessed due to filesystem permissions. Fixes #24109. - Fixed an issue where the Debug page would display a different number of specs for in-progress runs than the in-progress specs reported in Cypress Cloud. Fixes #25647.
- Fixed an issue in middleware where error-handling code could itself generate an error and fail to report the original issue. Fixes #22825.
- Fixed an regression introduced in Cypress 12.3.0 where custom browsers that relied on process environment variables were not found on macOS arm64 architectures. Fixed in #25753.
Misc:
- Improved the UI of the Debug page. Addresses #25664, #25669, #25665, #25666, and #25667.
- Updated the Debug page sidebar badge to to show 0 to 99+ failing tests, increased from showing 0 to 9+ failing tests, to provide better test failure insights. Addresses #25662.
Dependency Updates:
12.5.1
Released 02/02/2023
Bugfixes:
- Fixed a regression introduced in Cypress 12.5.0 where the
runnablewas not included in thetest:after:runevent. Fixes #25663.
Dependency Updates:
- Upgraded
simple-gitfrom3.15.0to3.16.0to address this security vulnerability where Remote Code Execution (RCE) via the clone(), pull(), push() and listRemote() methods due to improper input sanitization was possible. Addressed in #25603.
12.5.0
Released 01/31/2023
Features:
- Easily debug failed CI test runs recorded to the Cypress Cloud from your local Cypress app with the new Debug page. Please leave any feedback here. Your feedback will help us make decisions to improve the Debug experience. For more details, see our blog post. Addressed in #25488.
Performance:
- Improved memory consumption in
runmode by removing reporter logs for successful tests. Fixes #25230.
Bugfixes:
- Fixed an issue where alternative Microsoft Edge Beta, Canary, and Dev binary versions were not being discovered by Cypress. Fixes #25455.
Dependency Updates:
- Upgraded
underscore.stringfrom3.3.5to3.3.6to reference rebuilt assets after security patch to fix regular expression DDOS exploit. Addressed in #25574.
12.4.1
Released 01/27/2023
Bugfixes:
- Fixed a regression from Cypress 12.4.0 where Cypress was not exiting properly when running multiple Component Testing specs in
electroninrunmode. Fixes #25568.
Dependency Updates:
- Upgraded
ua-parser-jsfrom0.7.24to0.7.33to address this security vulnerability where crafting a very-very-long user-agent string with specific pattern, an attacker can turn the script to get stuck processing for a very long time which results in a denial of service (DoS) condition. Addressed in #25561.
12.4.0
Released 1/24/2023
Features:
- Added official support for Vite 4 in component testing. Addresses #24969.
- Added new
experimentalMemoryManagementconfiguration option to improve memory management in Chromium-based browsers. Enable this option withexperimentalMemoryManagement=trueif you have experienced "Out of Memory" issues. Addresses #23391. - Added new
experimentalSkipDomainInjectionconfiguration option to disable Cypress from settingdocument.domainon injection, allowing users to test Salesforce domains. If you believe you are havingdocument.domainissues, please see theexperimentalSkipDomainInjectionguide. This config option is end-to-end only. Addresses #2367, #23958, #24290, and #24418. - The
.ascommand now accepts an options argument, allowing an alias to be stored as type "query" or "static" value. This is stored as "query" by default. Addresses #25173. - The
cy.log()command will now display a line break where the\ncharacter is used. Addresses #24964. component.specPatternnow utilizes a JSX/TSX file extension when generating a new empty spec file if project contains at least one file with those extensions. This applies only to component testing and is skipped ifcomponent.specPatternhas been configured to exclude files with those extensions. Addresses #24495.- Added support for the
data-qaselector in the Selector Playground in addition todata-cy,data-testanddata-testid. Addresses #25305.
Bugfixes:
- Fixed an issue where component tests could incorrectly treat new major versions of certain dependencies as supported. Fixes #25379.
- Fixed an issue where new lines or spaces on new lines in the Command Log were not maintained. Fixes #23679 and #24964.
- Fixed an issue where Angular component testing projects would fail to initialize if an unsupported browserslist entry was specified in the project configuration. Fixes #25312.
Misc
- Video output link in
cypress runmode has been added to it's own line to make the video output link more easily clickable in the terminal. Addresses #23913.