You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a specific test spec scenario where I need to enable the feature chormeWebSecurity as true. By default, I've set chormeWebSecurity as false into the cypress.json file.
Most of our test should have the chrome web security disabled.
I've tried to implement the Cypress.config('chromeWebSecurity', true); but seems the command is enabling the feature, but does not perform as expected. The specific test spec has a graphql request in order to load the features on the page.
Adding Cypress.config('chromeWebSecurity', true); into the spec file seemed to work:
Into the `cypress.json', I have the chrome we security disabled:
The test still failing to load the element: Timed out retrying: Expected to find element: [data-testid="empty-state"], but never found it.
Removing the entire "chromeWebSecurity": false, line from the cypress.json and the Cypress.config('chromeWebSecurity', true);, it works (but the other specs that needs the chrome feature does not work)..
*Note: Images - removed sensitive company information.
Browser benchmark:
---> The issue happens with Chrome and Edge. Removing the "chromeWebSecurity": false, from cypress.json the test will pass.
---> Electron80 and Firefox are working properly, even with "chromeWebSecurity": false, explicit into cypress.json.
This repo is only for issues relating to Cypress documentation. If you want to open an issue on our main project, you can open it here. This issue will be moved to our main repo.
Changeing the chromeWebSecurity property requires that the browser restart - so this value is readonly in Cypress.config() and cannot be changed mid-test.
Type of bug / changes
I have a specific test spec scenario where I need to enable the feature
chormeWebSecurity
astrue
. By default, I've setchormeWebSecurity
asfalse
into thecypress.json
file.Most of our test should have the chrome web security disabled.
I've tried to implement the
Cypress.config('chromeWebSecurity', true);
but seems the command is enabling the feature, but does not perform as expected. The specific test spec has a graphql request in order to load the features on the page.Here's the spec example:
So, here's come the weirdo behaviour (benchmark):
Cypress.config('chromeWebSecurity', true);
into the spec file seemed to work:Timed out retrying: Expected to find element: [data-testid="empty-state"], but never found it.
"chromeWebSecurity": false,
line from thecypress.json
and theCypress.config('chromeWebSecurity', true);
, it works (but the other specs that needs the chrome feature does not work)..*Note: Images - removed sensitive company information.
Browser benchmark:
---> The issue happens with Chrome and Edge. Removing the
"chromeWebSecurity": false,
from cypress.json the test will pass.---> Electron80 and Firefox are working properly, even with
"chromeWebSecurity": false,
explicit into cypress.json.Here's the browser info:
macOS Mojave - Version 10.14.6
The text was updated successfully, but these errors were encountered: