Skip to content
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

Closed
sirkkalap opened this issue Feb 2, 2024 · 9 comments · Fixed by #28860
Closed

Close button not working on Choose browser page v13.6.4 #28852

sirkkalap opened this issue Feb 2, 2024 · 9 comments · Fixed by #28860

Comments

@sirkkalap
Copy link

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).

@MikeMcC399
Copy link
Contributor

This is a regression from cypress@13.6.3.

Reproducible also on Ubuntu 22.04 and Windows 11 with Node.js 20.11.0.

Repro steps:

npx cypress open --e2e --browser electron

Then hit Close button.

@jennifer-shehane
Copy link
Member

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.

@mschile
Copy link
Contributor

mschile commented Feb 2, 2024

I was able to reproduce the issue and tracked it down to being introduced in commit cdc42b9.

@MikeMcC399
Copy link
Contributor

@mschile

I was able to reproduce the issue and tracked it down to being introduced in commit cdc42b9.

@elevatebart
Copy link
Contributor

@mschile can you share the steps? Machine? Browser? I want to have a look at this issue I introduced.

Own my mistakes...

@MikeMcC399
Copy link
Contributor

@elevatebart

can you share the steps? Machine? Browser? I want to have a look at this issue I introduced.

See #28852 (comment) above for repro steps.

@elevatebart
Copy link
Contributor

What happens

When 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 type="submit" by default. and version 0.11.0 of the design system does not implement the type attribute properly.

Why it happened

I 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 fix

Update both dependency numbers to the latest version (see #28860)

How to avoid it happening again

Add a component test to check that each button triggers the right event and only the right event.

@jennifer-shehane jennifer-shehane added the stage: needs review The PR code is done & tested, needs review label Feb 5, 2024
@MikeMcC399
Copy link
Contributor

I checked with the pre-release version from 4b6cafa#comments on Ubuntu 22.04 x64 and the fix looks fine. 🎉

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Feb 20, 2024

Released in 13.6.5.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v13.6.5, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Feb 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants