cypress-realworld-testing icon indicating copy to clipboard operation
cypress-realworld-testing copied to clipboard

Confusing reference to Cypress.env variables

Open rsivan opened this issue 1 year ago • 1 comments

On content/real-world-examples/overview/custom-cypress-commands.mdx, under cy.loginByAPI(), it says: Note how we are using [Cypress.env()](https://docs.cypress.io/api/cypress-api/env) to handle our environment variables. You can find these in cypres/plugins/index.ts and cypress.json, respectively.

I find the statement "You can find these in cypres/plugins/index.ts and cypress.json, respectively." confusing or misleading, as the variables are actually defined in cypress.config.ts

rsivan avatar Dec 06 '23 18:12 rsivan

@rsivan

You're right. The description became incorrect after the Cypress Real World App was migrated to Cypress 10.x. It used to be correct for legacy configurations of Cypress 9.x and lower.

MikeMcC399 avatar Dec 06 '23 19:12 MikeMcC399