Skip to content
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

Confusing reference to Cypress.env variables #324

Open
rsivan opened this issue Dec 6, 2023 · 1 comment
Open

Confusing reference to Cypress.env variables #324

rsivan opened this issue Dec 6, 2023 · 1 comment

Comments

@rsivan
Copy link

rsivan commented Dec 6, 2023

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

@MikeMcC399
Copy link
Contributor

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants