-
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
Improve how config changes are handled #2869
Comments
This is a great first start!
|
@chrisbreiding and @jennifer-shehane and @bkucera and @flotwig thoughts? |
|
Going to rework the design to get the file path in there and move around the browser warning placements. Some quick things before updating:
|
The wording doesn't make sense now as it's basically telling me to go make changes in
I like the placement of the message in the desktop gui - but for the test runner, i don't think it should extend into the AUT area. I would see what it looks like isolating it to only be above the tests. Like displacing the same width as the tests currently do. |
I feel like the user knows that they've made changes, so we just need to gently remind them that their changes will not be applied until they restart. Some phrasing like: "cypress.json has been modified since starting Cypress. Changes will not take effect until you restart Cypress." Looks good in the reporter pane! |
Currently, when
cypress.json
file is changed, we re-open the project and close the browser if it is currently open and running a spec. We do this because a config option likemodifyObstructiveCode
orchromeWebSecurity
could have changed, which requires restarting the project and/or browser. The downside is that the currently running spec is 'lost' and the user has to manually re-select it to run their tests again.When the plugins file is changed, we reload the plugins file and it automatically takes effect without re-opening the project or closing the browser. This is arguably wrong because the user could have changed options that affect the project or the browser. New events coming in 4.0 (
run:start
,spec:start
, etc) will also necessitate the need to 'restart' the run (re-open the project). It's also an issue because it's not clear to the user that anything has happened when they change their plugins file, so they might think they need to completely quit and re-open Cypress for their changes to take effect.We should make this consistent and improve the user experience for both these cases by doing the following:
Tasks:
The text was updated successfully, but these errors were encountered: