-
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
feat: Use .config files #18578
feat: Use .config files #18578
Conversation
Thanks for taking the time to open a PR!
|
…nto alejandro/unified/use-config-file
…s-io/cypress into alejandro/unified/use-config-file
Test summaryRun details
View run in Cypress Dashboard ➡️ Failures
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
…nto alejandro/unified/use-config-file
…s-io/cypress into alejandro/unified/use-config-file
…s-io/cypress into alejandro/unified/use-config-file
This reverts commit 0702fbb.
…nto alejandro/unified/use-config-file
@lmiller1990 it seems we were testing it incorrectly yesterday - if you add |
…nto alejandro/unified/use-config-file
There is a few things that need to be addressed. I'm guessing they are out of scope of this specific PR, but maybe we can do them as features fork from this branch, before we merge this branch. There is a lot more complexity with the new 1. Conflicting
|
…nto alejandro/unified/use-config-file
…nto alejandro/unified/use-config-file
console.log(err)
console.log(err.stack) Not sure if we should explore changes for this in this PR on a different one
We may need to decide the next steps here in the upcoming PR's, we are not creating config files anymore
This has not been implemented yet
The file name is hardcoded |
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.
I was able to get into some states where it's not possible to recover without using the terminal, eg when adding a project in global mode that uses an older version of Cypress. I know we plan to address the error handling and edge cases in future PRs so I'll document what I found separately to make it into tickets.
Also confirmed that if I'm not doing things that are already known to cause errors, everything else is looking good for me and merging this doesn't seem like it would interfere with any other work.
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.
I think we should go ahead and merge, with the understanding that if it's a major blocker for anything we can always revert - and we can bugfix any of the edge cases we run into in the meantime - having more eyes on it in the unify branch will be helpful
…ve-activeProject * unified-desktop-gui: (57 commits) chore: Add e2e tests for global mode (#18719) chore: add percy to app and launchpad package (#18781) chore: update test refactor: move settings in app (#18729) feat: setup launchpad lifecycle (#18734) feat(app): decouple event manager from driver (#18695) chore: Force single resolution for core modules, infinite loop guard (#18764) fix(driver): Sticky elements within a fixed container will not prevent an element from being scrolled to (#18441) chore: cleaning up the runner container pattern (#18741) feat: Use .config files (#18578) chore(app): basic style and example to stop scrollIntoView bug (#18736) chore: make `create` function on server.ts obsolete (#18615) feat: add codegen utility (#18708) docs: Add instructions to squash commits to develop in Contributing (#18728) fix(@cypress/react): throw if using Next.js swc-loader without nodeVersion=system (#18686) refactor: remove Ramda (#18723) fix: support using create-cypress-tests as part of build process (#18714) chore: Increase paralleled machines for desktop-gui tests (#18725) fix(app): do not cache graphql (#18716) chore: Update Chrome (stable) to 95.0.4638.69 (#18696) ...
User facing changelog
How to test it:
The way to test it is adding
cypress.config.{ts|js}
to an existing project, if there's acypress.json
file it should fail, but if there's no, it should work as it was before.A user should be able to pass
--config-file
flag as well, and use custom config files with the file extensionts|js
.Also, it should work when init the component testing.
Additional details
cypress.config.{ts|js}
instead ofcypress.json
isFirstTimeCT
forisCTConfigured
making it clear if when the config is loaded it is set or notcypress.json
exists - migrate, or remove It depending of the caseTodo:
cypress.config.{ts|js}
How has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?