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

Search is disabled in browser runner window #20222

Closed
saschwarz opened this issue Feb 16, 2022 · 5 comments · Fixed by #20375
Closed

Search is disabled in browser runner window #20222

saschwarz opened this issue Feb 16, 2022 · 5 comments · Fixed by #20375
Labels
good first issue Good for newcomers pkg/desktop-gui This is due to an issue in the packages/desktop-gui directory type: unexpected behavior User expected result, but got another

Comments

@saschwarz
Copy link

Current behavior

Prior to 9.5.0(?) setting focus in the browser runner window and typing Cmd-F to search for text would search the text within the browser window. Now Cmd-F is captured and focus is shifted to the search bar in the Cypress app and the names of tests are searched.

I use search within the browser window as a normal part of my testing debugging workflow: to find specific steps, to find accessible roles that aren't matching exactly, to find logging, etc.

Desired behavior

Please restore the default browser search functionality

Test code to reproduce

No specific test code is required.

Cypress Version

9.5.0

Other

No response

@BlueWinds
Copy link
Contributor

I agree this is not great usability.

It looks like this happened in #248, when we added test runner keyboard shortcuts (docs). In https://github.com/cypress-io/cypress/blob/develop/packages/reporter/src/lib/shortcuts.ts we're not checking for modifier keys (like ctrl) when deciding how to react to keypresses.

This is something we'd like to address, and I'll see when we can get to it; a pull request would be very welcome if anyone wants to create one, should be fairly straightforward.

@BlueWinds BlueWinds added the good first issue Good for newcomers label Feb 22, 2022
@jennifer-shehane jennifer-shehane added pkg/desktop-gui This is due to an issue in the packages/desktop-gui directory type: unexpected behavior User expected result, but got another labels Feb 22, 2022
@majidzeno
Copy link
Contributor

I will work on this ✋

@cypress-bot cypress-bot bot added the stage: needs review The PR code is done & tested, needs review label Feb 26, 2022
@majidzeno
Copy link
Contributor

@saschwarz It's merged now 🎉

@BlueWinds
Copy link
Contributor

Forgot to tag this with a release before merging, so the bot didn't comment properly. This is merged into the develop branch, and will go out with the next Cypress release.

@cypress-bot
Copy link
Contributor

cypress-bot bot commented Mar 28, 2022

Released in 9.5.3.

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

@cypress-bot cypress-bot bot removed the stage: needs review The PR code is done & tested, needs review label Mar 28, 2022
@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Mar 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers pkg/desktop-gui This is due to an issue in the packages/desktop-gui directory type: unexpected behavior User expected result, but got another
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants