-
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
[WIP] Update configuration change behavior #3211
Conversation
6864507
to
15f1807
Compare
This needs revisiting - removed as needing review at this time. |
I updated the original comment to fill in the requirements of the pull request template. Maybe I messed up some things upon merge conflicts, but some initial observations:
|
This comment has been minimized.
This comment has been minimized.
… restarting after plugins file changes.
I rewrote the reporter tests for the banner in Cypress and have confirmed that the |
Unfortunately we have to close this PR due to inactivity. Please open a new PR addressing the original issue and any requested changes. |
User facing changelog
There is now a prompt to restart Cypress whenever changes are made to the project's configuration or plugin file instead of closing the Test Runner after changes.
Additional details
Problem
cypress.json
currently, we close the Test Runner completely. This is abrupt and oftentimes unexpected. It actually just looks like Cypress crashed.plugins/index.js
file, we just reload the file and do not close Cypress. This may mean that changes made to the plugins that only take effect when you restart the browser won't take effect and would likely cause confusion to the user.Solution
cypress.json
orplugins/index.js
file, we show a message in the Test Runner prompting them of the change and encouraging them to restart Cypress with a button.How has the user experience changed?
Before when editing
cypress.json
or customconfigFile
in browserAfter when editing
cypress.json
or customconfigFile
in browserBefore when editing
plugins/index.js
in browserNo notice, but since I edited the browser flags, the browser flags will actually take no effect and I will be confused.
After when editing
plugins/index.js
in browserBefore when editing
cypress.json
or customconfigFile
in Desktop-GUIAfter when editing
cypress.json
, customconfigFile
, or plugins file in Desktop-GUISettings Tab
Project Tab
When multiple warnings, they just stack on top of each other.
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?