-
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
Search cannot find paths with filenames #22463
Comments
+1 Cypress UI search is completely broken. As an example: If I type "lti" in the UI search box, this will match both the "simulation" folder (it matches both the "l" and "ti" separately) and the "lti" folder (via a complete match). That's not what 99% of the human beings using a search box expect, at all.... |
Thank you for the report and the reproduction @DanielYang-AT. I can confirm your findings. We have a separate issue logged for some known issues with search (#21879), but I will leave this issue open as it calls attention to some specific incorrect behaviors. |
Note for picking this up: To fix this, we need to account for more than just This might have a couple of side effects to watch out for related to how we highlight matching segments of the results, so there could be some further adjustments needed. |
The code for this is done in cypress-io/cypress#23325, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
When searching in the Cypres UI for a file, if the full path is used, Cypress cannot find the file. When just the folder is searched, Cypress can find the files. Also, if just the filename is used as a search parameter, then Cypress can find the test file.
For example
cypress/e2e/spec.cy.js
-> will not be foundcypress/e2e/
-> will not find any resultscypress/e2e
-> will find the files in the e2e folderspec.cy.js
-> will find all tests with the same nameDesired behavior
Cypress should allow searching with the full path of a file and be able to find any test file if the filename+full relative path is passed as a search parameter.
Test code to reproduce
https://github.com/DanielYang-AT/cypress-test-tiny
(this is a fork of the cypress-test-tiny with 0 changes)
cypress/e2e/spec.cy.js
Cypress Version
10.2.0
Other
Cypress 9.x.x and below were all able to find the files as expected. This was a change after the upgrade to 10.x.x
The text was updated successfully, but these errors were encountered: