Thank you for maintaining allure-cypress!
Cypress.env() was deprecated in Cypress 15.10, and will be fully removed in Cypress 16.
Starting in v15.10.0, users can pre-emptively disable Cypress.env() and its environment variable serialization. This is a security issue: values that can be retrieved by Cypress.env() may be freely accessed by the application under test (AUT) and any third party code that the AUT loads into the browser.
Until this plugin migrates, users who want to disable Cypress.env() for security reasons will not be able to.
Migration steps:
- Replace references to
Cypress.env with Cypress.expose for configuration values that are not sensitive
- Use
cy.env() when you have access to the current test context (like in custom commands) and need to access sensitive values like API keys
- Directly reference environment variables when your plugin code runs in a Node.js context (like in task definitions)
- Update configuration references and documents to use appropriate configuration methodology
- Set your Cypress peer dependency to >=
15.10.0.
Resources:
If you have questions about the migration, please ask!
Thank you again for being an important part of the Cypress ecosystem.
Thank you for maintaining
allure-cypress!Cypress.env()was deprecated in Cypress 15.10, and will be fully removed in Cypress 16.Starting in v15.10.0, users can pre-emptively disable
Cypress.env()and its environment variable serialization. This is a security issue: values that can be retrieved byCypress.env()may be freely accessed by the application under test (AUT) and any third party code that the AUT loads into the browser.Until this plugin migrates, users who want to disable
Cypress.env()for security reasons will not be able to.Migration steps:
Cypress.envwithCypress.exposefor configuration values that are not sensitivecy.env()when you have access to the current test context (like in custom commands) and need to access sensitive values like API keys15.10.0.Resources:
cy.env()andCypress.expose()Cypress.env()If you have questions about the migration, please ask!
Thank you again for being an important part of the Cypress ecosystem.