
WICK-A11Y v3.0.1: Cypress v16 Ready - Upgrade Without Fear (Fully Backward Compatible)
ACT 1: EXPOSITION Ok, Cypress v16 is coming, and our always-friendly Cypress environment variables are going to be revamped. Why? Security reasons. Cypress.env() variables are exposed in the browser, so they could potentially be accessed by "anyone." Starting in Cypress v15.10.0, two new types of environment variables have been introduced: cy.env() (for private stuff) and Cypress.expose() (for non-sensitive information). The almighty Cypress.env() has been deprecated and will be gone starting in Cypress v16 . This article is not meant to explain what the change is in detail, or how you can migrate your existing Cypress framework to the new environment model. For that, you can (and will) find extremely helpful information in: Cypress official documentation: Migrating away from Cypress.env() and Environment Variables & Secrets Gleb Bahmutov's article: Migrating From Cypress.env To cy.env and Cypress.expose Methods . However, because of this change, many open-source community plugins that
Continue reading on Dev.to
Opens in a new tab

