-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Warn when writing to 'read only' properties of config
#6407
Labels
pkg/driver
This is due to an issue in the packages/driver directory
topic: plugins ⚙️
type: error message
type: unexpected behavior
User expected result, but got another
Comments
jennifer-shehane
added
type: unexpected behavior
User expected result, but got another
pkg/driver
This is due to an issue in the packages/driver directory
stage: ready for work
The issue is reproducible and in scope
topic: plugins ⚙️
type: error message
labels
Feb 11, 2020
4 tasks
Another related issue trying to overwrite Cypress.config #3422 |
Another strange (maybe related?) issue with trying to overwrite |
This was referenced Jun 9, 2020
This was referenced Aug 3, 2020
cypress-bot
bot
added
stage: backlog
and removed
stage: ready for work
The issue is reproducible and in scope
labels
Oct 1, 2021
4 tasks
cypress-bot
bot
added
stage: needs review
The PR code is done & tested, needs review
stage: work in progress
and removed
stage: work in progress
labels
Nov 12, 2021
cypress-bot
bot
added
stage: product review
and removed
stage: needs review
The PR code is done & tested, needs review
stage: work in progress
labels
Nov 12, 2021
cypress-bot
bot
added
stage: needs review
The PR code is done & tested, needs review
stage: work in progress
and removed
stage: work in progress
stage: needs review
The PR code is done & tested, needs review
labels
Nov 23, 2021
cypress-bot
bot
added
stage: needs review
The PR code is done & tested, needs review
and removed
stage: work in progress
labels
Dec 3, 2021
cypress-bot
bot
added
stage: work in progress
stage: needs review
The PR code is done & tested, needs review
and removed
stage: needs review
The PR code is done & tested, needs review
stage: work in progress
labels
Dec 6, 2021
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
cypress-bot
bot
removed
the
stage: needs review
The PR code is done & tested, needs review
label
Dec 21, 2021
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
pkg/driver
This is due to an issue in the packages/driver directory
topic: plugins ⚙️
type: error message
type: unexpected behavior
User expected result, but got another
Current behavior:
Currently only some of the
config
values are writable at certain points of a run and it is not clear which are and which aren't. The value simply is not read where necessary if it is not writable.Honestly, I can't even list out which are readable and writable and when because this has never been documented. I could only guess or dig through code.
Cypress.config()
We briefly noted this in the
Cypress.config()
doc, but it is sadly lacking a full explanation of which are writable and which are not and when. Previous issue for this: #3422Some confusion:
userAgent
during test Unable to switch userAgent during test run #2100The other point of confusion is that it appears to be writable, when it's not at all! For example, the below will log the newly set value for
userAgent
, but it actually takes no effect on the actualuserAgent
set.screenshotsFolder
during test screenshotsFolder not working correctly #1525The 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.chromeWebSecurity
during test Cypress.Config() does not perform as a expected. #8160Actual saved screenshot location
Plugins Configuration API
Furthermore, we are expanding upon the use of the
config
object from within theplugins/index.js
https://on.cypress.io/configuration-api - where some of this config is not writable and will not be writable at the time of run as part of #5941This will have config values that are not writable at time that the plugin is read in like
configFile
andprojectRoot
.Desired behavior:
Cypress.config
Related issues
Versions
4.0.1
The text was updated successfully, but these errors were encountered: