-
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
fix: Detect CT framework when unconfigured project opened with --component
#26306
Conversation
3 flaky tests on run #45163 ↗︎
Details:
cypress/e2e/cypress/cypress.cy.js • 3 flaky tests • 5x-driver-electron
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
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.
Code looks good, won't block on merging, but if there's a quick refactor to be had, it sure would be nice to do it 💯
--component
--component
This doesn't seem to be working for me with the project I tried, I'll test with a fresh react project like in the description, but let me know if my expectations are off in this loom? Update: I might have hit a strange cache issue where |
@marktnoonan Very interesting. That happens every time with that specific project? Anything interesting pop in debug logs? I did notice one situation where the detection wouldn't work if the config file was invalid or otherwise couldn't be resolved correctly, but that typically caused other problems that were more noticeable. |
@mike-plummer I'll follow up in Slack, I updated this comment with a link to the same exact project working correctly, I think maybe it's an issue with |
I had already approved when I noticed I could actually consistently get this to not work on one project: loom Commands:
Will see if I can capture useful logs. |
The race condition Mark is seeing above has been identified but is a pre-existing issue that could have broader impacts to fix. Have written that up in #26388 |
* chore(deps): bump in json5 in system-tests projects (#26379) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * chore(deps): bump set-getter from 0.1.0 to 0.1.1 (#26345) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Emily Rohrbough <[email protected]> * chore(deps): bump vm2 from 3.9.5 to 3.9.14 (#26335) Bumps [vm2](https://github.com/patriksimek/vm2) from 3.9.5 to 3.9.14. - [Release notes](https://github.com/patriksimek/vm2/releases) - [Changelog](https://github.com/patriksimek/vm2/blob/master/CHANGELOG.md) - [Commits](patriksimek/vm2@3.9.5...3.9.14) --- updated-dependencies: - dependency-name: vm2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Emily Rohrbough <[email protected]> * fix: Detect CT framework when unconfigured project opened with `--component` (#26306) Co-authored-by: Ryan Manuel <[email protected]> * chore: created a new github action to handle new comments better (#26234) * chore: created a new github action to handle new comments better --------- Co-authored-by: Emily Rohrbough <[email protected]> Co-authored-by: Matt Schile <[email protected]> * chore: remove debug logging on by default (#26411) * fix: remove logging * added changelog entry * chore(dependency): tweaking renovate bot settings (#26428) * Update renovate.json * Update renovate.json * chore: update devtools protocol (#26410) --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Emily Rohrbough <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mike Plummer <[email protected]> Co-authored-by: Ryan Manuel <[email protected]> Co-authored-by: Ben M <[email protected]> Co-authored-by: Matt Schile <[email protected]> Co-authored-by: Lachlan Miller <[email protected]>
cypress open --component
#22777Additional details
The onboarding wizard automatically detects your CT framework and bundler when advancing from the testing type selection screen, but if you open the launchpad directly into CT using the
--component
flag this logic was being bypassed. This PR performs the necessary wizard initialization if a testing type is already selected whenopen
mode is being set up.Steps to test
npm create vite@latest
choose React, remaining options can be anything
npm i
in project dir to install dependencies.npx cypress open --component --project <project dir>
yarn dev --component --project <project dir>
How has the user experience changed?
Before
After
PR Tasks
cypress-documentation
?type definitions
?