-
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] Issue 1281 warning on no write #5584
[WIP] Issue 1281 warning on no write #5584
Conversation
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Toxicable, sorry for the delay in responding. Thanks for the contribution. We will need some tests written to verify this new behavior.
There is a Contributing guide that covers how to contribute and get Cypress running locally here: https://github.com/cypress-io/cypress/blob/develop/.github/CONTRIBUTING.md
Let us know if you have trouble getting the tests running locally.
@jennifer-shehane Hey, thanks for the reply, I've tried getting the tests running locally both on windows and ubuntu but both times im getting a whole bunch of unit testing failures from path mis-matches to different shaped objects. As for writing the unit test for this specific case itself. All that needs to be done is a file system needs to be created in readonly mode, then Are there any existing tests similar to this that I could use an example for how to set this up? |
@Toxicable you may need to follow these instructions for contributing in Windows. https://github.com/cypress-io/cypress/blob/develop/CONTRIBUTING.md#getting-started Although I'm not sure why things would fail in Ubuntu specifically. Normally we have e2e tests with snapshots for error messages from server package. For example, this is a test of the error message above the one you added https://github.com/cypress-io/cypress/blob/develop/packages/server/test/e2e/2_cdp_spec.ts#L9:L9 I'm adding |
3ea7e17
to
f86b834
Compare
@jennifer-shehane I added a test but struggling to get it to working as expected. |
This change replaces the error with a warning when cypress is executing tests in a readonly fs.
f86b834
to
6652f87
Compare
Unfortunately we have to close this PR due to inactivity. Please open a new PR addressing the original issue and any requested changes. |
@@jennifer-shehane I'd like to take this PR up and make the additional changes you would need for it to get merged. If you wouldn't mind, could you give some guidance on how to resolve the issue of Cypress not being able to detect spec files that @Toxicable was struggling with? |
User facing changelog
Cypress no longer requires write access to the projectRoot, it instead will display a warning.
Additional details
This allows for cypress inetegration with other tools such as Bazel
How has the user experience changed?
It allows Cypress to be run in sandboxed or otherwise readonly fs environments
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?