-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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: Deprecate run-ct / open-ct, and update all examples to use --ct instead #18422
feat: Deprecate run-ct / open-ct, and update all examples to use --ct instead #18422
Conversation
Thanks for taking the time to open a PR!
|
19c40e0
to
4dec064
Compare
4dec064
to
c89d6cf
Compare
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 tested this out manually and verified it works as intended.
Other than the log formatting changes, this needs a test of some kind, at least testing the DataContext change.
There are also a lot of failing tests that aren't failing in the base branch. Need to fix those before this can be merged in.
@@ -61,6 +61,13 @@ export class DataContext extends DataContextShell { | |||
toAwait.push(this.actions.project.setActiveProject(this.config.launchArgs.projectRoot)) | |||
} | |||
|
|||
if (this.config.launchArgs.testingType) { |
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.
Is it possible to test this?
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.
Soon. Working on the testing infrastructure for open mode right now
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.
@tgriesser Do you think there's any value in unit tests for this?
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 went ahead and wrote one. Happy to change the approach there if people have opinions.
…e2e or --ct are used (if LAUNCHPAD=1)
fea1a39
to
5367165
Compare
…18418-deprecate-open-ct
…18418-deprecate-open-ct
return require('./run-ct').run(options) | ||
} | ||
if (mode === 'interactive') { | ||
if (options.testingType === 'component' && !process.env.LAUNCHPAD) { |
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.
Is there documentation around the LAUNCHPAD env? I'm probably missing it but haven't found it yet
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.
Not that I've found either. Speaking with the CT team, the original plan was to merge launchpad into the develop
behind this flag, but plans changed, and now the env variable will be removed before launch.
I'm not removing it here in this PR though, because that's a change which will, I expect, have massive ramifications for our tests on cypress - at the very least every system test that assumes cypress open
drops it into the e2e testing mode will need an update.
Test summaryRun details
View run in Cypress Dashboard ➡️ Flakiness
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 |
packages/driver/cypress/integration/commands/assertions_spec.js
Outdated
Show resolved
Hide resolved
packages/driver/cypress/integration/commands/navigation_spec.js
Outdated
Show resolved
Hide resolved
Co-authored-by: Chris Breiding <[email protected]>
* unified-desktop-gui: feat: Adding a cache layer for remote queries, e2e test helpers (#18652) fix: overflow clip to prevent selector header from dissapearing (#18649) feat(unify): command log color update (#18596) build: run frontend-shared tests in CI (#18628) Update README.md feat: Deprecate run-ct / open-ct, and update all examples to use --ct instead (#18422) feat(unify): add growth prompts (#18626)
* unified-desktop-gui: feat: Adding a cache layer for remote queries, e2e test helpers (#18652) fix: overflow clip to prevent selector header from dissapearing (#18649) feat(unify): command log color update (#18596) build: run frontend-shared tests in CI (#18628) Update README.md feat: Deprecate run-ct / open-ct, and update all examples to use --ct instead (#18422) feat(unify): add growth prompts (#18626)
User facing changelog
cypress run-ct
andcypress open-ct
are deprecated and will be removed in a future version. Use Usecypress [open|run] --ct
orcypress [open|run] --component
instead.PR Tasks