-
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: relaunch browser when switching testing types from app #19961
Conversation
Thanks for taking the time to open a PR!
|
@@ -117,7 +117,8 @@ describe('Choose a Browser Page', () => { | |||
}).as('launchProject') | |||
|
|||
cy.get('@launchButton').click() | |||
cy.contains('button', 'Opening E2E Testing in Chrome') | |||
// TODO: Relies on ctx.emitter.toLaunchpad which doesn't refresh AUT |
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 this work being tracked somewhere?
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.
No, I'll create an issue and update this comment. I talked with @tgriesser a bit about this and tried to find out why this wasn't working but had no luck
Edit: I was wrong, it's working 😅 . Since we are stubbing the request, I need to manually emit. Working on updating
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 |
<path d="M2 10H6V14H2V10Z" fill="white" fill-opacity="0.5"/> | ||
<path d="M10 2H14V6H10V2Z" fill="white" fill-opacity="0.5"/> | ||
<path d="M2 6V5C1.44772 5 1 5.44772 1 6H2ZM6 6H7V5H6V6ZM2 14H1C1 14.5523 1.44772 15 2 15V14ZM10 2V1H9V2H10ZM14 2H15C15 1.44772 14.5523 1 14 1V2ZM14 6V7H15V6H14ZM10 6H9V7H10V6ZM10 10H11V9H10V10ZM10 14V15C10.5523 15 11 14.5523 11 14H10ZM2 7H6V5H2V7ZM5 6V10H7V6H5ZM6 9H2V11H6V9ZM3 10V6H1V10H3ZM5 10V14H7V10H5ZM6 13H2V15H6V13ZM3 14V10H1V14H3ZM10 3H14V1H10V3ZM13 2V6H15V2H13ZM14 5H10V7H14V5ZM11 6V2H9V6H11ZM6 11H10V9H6V11ZM9 10V14H11V10H9ZM10 13H6V15H10V13Z" fill="white"/> | ||
</svg> |
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.
Random q: where do the icons/markdown come from? I read the icon docs but still don't really understand.
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.
From Figma. You can click on the icon and export it as an svg. There is also the design-system page that has all the icons as well
https://www.figma.com/file/1WJ3GVQyMV5e7xVxPg3yID/Design-System?node-id=2448%3A3902
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.
Right, ok! I thought it was coming from some library or plugin, for some reason. This makes sense now.
Working on fixing the |
Figured out why |
* 10.0-release: feat: validate specPattern root level (#19980) feat(unify): unsupported browsers (#19997) feat: persist isSideNavigationOpen (#20026) feat: add types for urqlCacheKeys (#20027) fix: rename spec.js to spec.cy.js (#20029) feat: waiting for dependencies to be installed in wizard (#19955) fix: migrate config fields to correct the location (#19940) feat: relaunch browser when switching testing types from app (#19961) test: final ct-audit tests and component tweaks (#19948)
User facing changelog
Relaunch browser when switching testing type
Additional details
Allows the browser to relaunch when switching testing type and also fixes some minor UI issues with the OpenBrowserList (icons).
There was a bug with
reconfigureProject
that could be seen in the terminal when switching from e2e -> component.reconfigureProject
was callinginitializeActiveProject
but theProjectLifeCycleManager
was calling this as well when you switch testing type. The lifecycle manager should be in charge of spawning a new project since it relies on the config being configured properly so I removed the call inreconfigureProject
.How has the user experience changed?
Screen.Recording.2022-01-28.at.6.17.38.PM.mov
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?