mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-02 21:10:47 -05:00
docs: Added 3rd option for overriding config (using Cypress.config)
Addresses #524
This commit is contained in:
@@ -168,7 +168,17 @@ Environment variables which do not match configuration keys will instead be set
|
||||
You can [read more about Environment Variables](https://on.cypress.io/environment-variables).
|
||||
{% endnote %}
|
||||
|
||||
***
|
||||
## Cypress.config
|
||||
|
||||
You can also override configuration values within your test using `Cypress.config`.
|
||||
Any value you change will be permanently changed for the remainder of your tests.
|
||||
|
||||
|
||||
```
|
||||
Cypress.config("pageLoadTimeout", 100000)
|
||||
|
||||
Cypress.config("pageLoadTimeout") // => 100000
|
||||
```
|
||||
|
||||
# Resolved Configuration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user