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
When trying to set Cypress.config() for non-mutable configurations which are ignored from inside of the tests, Cypress does not perform the action as expected and does not throw an error.
Example:
The test below passes, but Cypress does not indeed change the location of the screenshotsFolder, nor does it throw an error telling you that the screenshotsFolder was not set.
it('screenshots folder not settable',()=>{Cypress.config('screenshotsFolder','cypress/screenshots/desktop')expect(Cypress.config('screenshotsFolder')).to.eq('cypress/screenshots/desktop')cy.screenshot('homepage_desktop')})
I console.loged the extended state inside set() at setter_getter.coffee and the screenshotsFolder value was updated in it (as expected) using Cypress.config in a test. How can i know which key it can or can't change?
Current behavior:
When trying to set
Cypress.config()
for non-mutable configurations which are ignored from inside of the tests, Cypress does not perform the action as expected and does not throw an error.Example:
The test below passes, but Cypress does not indeed change the location of the
screenshotsFolder
, nor does it throw an error telling you that thescreenshotsFolder
was not set.Actual saved screenshot location
Related issues:
screenshotsFolder
: screenshotsFolder not working correctly #1525Desired behavior:
Versions
Cypress 3.1.5
The text was updated successfully, but these errors were encountered: