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

Cypress.config() inside test does not override "blacklistHosts" value #7426

Closed
CKuB opened this issue May 20, 2020 · 1 comment
Closed

Cypress.config() inside test does not override "blacklistHosts" value #7426

CKuB opened this issue May 20, 2020 · 1 comment
Labels
type: duplicate This issue or pull request already exists

Comments

@CKuB
Copy link

CKuB commented May 20, 2020

Current behavior:

Adding Cypress.config('blacklistHosts', '127.0.0.1:63342') within test does not override global blacklistHosts in cypress.json

Is it a bug or a feature?

Desired behavior:

Adding Cypress.config('blacklistHosts', '127.0.0.1:63342') within test overrides global blacklistHosts in cypress.json

Test code to reproduce

I have no opportunity to add my tests here((((

Versions

Cypress 4.5.0, MacOS 10.14.6, Chrome 81

@jennifer-shehane
Copy link
Member

blacklistHosts is not writeable at the time that Cypress.config() is called here. It needs to be set before the browser is opened. We should warn in these circumstances. Duplicate of #6407

@jennifer-shehane jennifer-shehane added the type: duplicate This issue or pull request already exists label May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants