-
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
fix: switching from ct to e2e (non-configured) does not go through setup #21607
Conversation
Thanks for taking the time to open a PR!
|
|
||
return true | ||
}, | ||
}) | ||
|
||
t.field('setTestingTypeAndReconfigureProject', { |
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.
Was this dead code?
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.
Yes, I'll add more comments in the future when making changes like this
sinon.stub(ctx.actions.electron, 'refreshBrowserWindow') | ||
sinon.stub(ctx.actions.electron, 'showBrowserWindow') | ||
await ctx.actions.project.switchTestingTypesAndRelaunch('component') | ||
ctx.emitter.toLaunchpad() |
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.
Curious if we need the additional emit here (if we don't need one in the above test)?
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.
This was required though I couldn't track down exactly why. To be more in line with the actual behavior, I'm going to use cy.reload
as that is what the ctx.actions.electron.refreshBrowserWindow()
would trigger outside of a test.
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 and I can't reproduce the original issue, config scaffolding is occurring now like we'd expect 👍
Looks like theres a few failures in the launchpad tests that may be related to these changes though?
@tbiethman latest commit has no failing launchpad tests |
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.
Super!
…pack * develop: fix: UNIFY-1408, warnings should be nested appropriately & clearable (#21630) chore: fix unit-tests-release job (#21652) chore(deps): update dependency eventsource to v2 [security] (#21639) fix: Add hover states for test titles in reporter (#21635) docs(CONTRIBUTING): Fix link to "good first issue" for newcomers (#21614) chore: compare `cy.screenshot` images in percy (#21598) fix: switching from ct to e2e (non-configured) does not go through setup (#21607) fix: issue with compilation failures in component testing (#21599) test: fix flaky launchpad test (#21637) docs: remove gitter link in contributing guide. (#21592) fix: order projects by most recently opened (#21589) fix: prevent crash on runs visit when offline (#21618) fix: pass family parameter to connect method (#21545) chore: clean up `debug` statements in preparation for 10.0 release, add `debug` docs (#21621) chore: add regression test for ts detection (#21578)
User facing changelog
Navigate to e2e project setup when switching from CT (configured) to e2e (not-configured) from App
Additional details
We were missing a call to
scaffoldTestingType()
when switching testing types from the App. This function is what initializes e2e setup and causes the Launchpad to render the e2e setup flow. I pulled the logic out into it's own function so I could call this from within the added Launchpadproject-setup.cy.ts
tests to verify we are redirecting as expected.How has the user experience changed?
Before:
Screen.Recording.2022-05-23.at.3.48.49.PM.mov
After:
Screen.Recording.2022-05-23.at.3.47.20.PM.mov
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?