-
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
Close button not working on Choose browser page v13.6.4 #28852
Comments
This is a regression from cypress@13.6.3. Reproducible also on Ubuntu 22.04 and Windows 11 with Node.js Repro steps: npx cypress open --e2e --browser electron Then hit Close button. |
I can't recreate this on Mac Sonoma. Someone on our team did experience though, we thought it was a fluke, but I guess not. |
I was able to reproduce the issue and tracked it down to being introduced in commit cdc42b9. |
|
@mschile can you share the steps? Machine? Browser? I want to have a look at this issue I introduced. Own my mistakes... |
See #28852 (comment) above for repro steps. |
What happensWhen one clicks on the close Button, it has the wrong button type so, after closing the browser, the click re-submits the form, re-opening it. Why does it re-submit now while before this change everything was fine? Html buttons have Why it happenedI made sure the bug was fixed in the design system and was implemented in full in my branch before moving the PR out of draft, but I expect that a bad merge rolled back the dependency to the button. As of now, the app and the launchpad still use 2 different version of the button. They are both outdated and with documented issues. How to fixUpdate both dependency numbers to the latest version (see #28860) How to avoid it happening againAdd a component test to check that each button triggers the right event and only the right event. |
I checked with the pre-release version from 4b6cafa#comments on Ubuntu 22.04 x64 and the fix looks fine. 🎉 |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
Clicking close button closes the browser but relaunches it immediately after closing it.
Desired behavior
Browser should stay closed after clicking Close button.
Test code to reproduce
The issue is in the UI and reproduced by MikeMC399 and cy.david in discord [1].
[1] https://discord.com/channels/755913899261296641/1202942184542965823
Cypress Version
v13.6.4
Node version
v18.7.1
Operating System
MacOS Sonoma 14.3 (23D56)
Debug Logs
No response
Other
The issue was not present at 13.6.2 according to discussion at discord (see above).
The text was updated successfully, but these errors were encountered: