docs: Added 3rd option for overriding config (using Cypress.config)

Addresses #524
This commit is contained in:
Jennifer Shehane
2017-06-05 10:47:15 -04:00
parent 56f8e95de4
commit ceaaab97b5
+11 -1
View File
@@ -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