cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
46.42k stars 3.14k forks source link

Keep "specs list tree" state (scroll position, open / closed folders, ...) #29255

Open luis-pato opened 3 months ago

luis-pato commented 3 months ago

What would you like?

I have a project with many components and many tests, so that "test list" on the left side is quite long.

Whenever the tests find an error and i fix my code, after clicking SAVE on the code editor, the tests run again. This is great and a really nice UX. The problem is that the "specs list tree" (i mean that bar with this the folders and tests tree on the left side of the window, with the tests list) always scrolls back to the top and any closed folders are now again open. So each time i have to at least scroll back down.

cypressCapture_small (Notice how each time i change the test code the file tree scrolls back to the top and all folders are open again)

I think it would be great if this "specs list tree" could keep track of the state. At least for things like scroll position, closed / open state of folders.

Why is this needed?

The tests work well without this feature, but having it would save some time and make the user experience much better. And maybe even prevent some small error when components / test suits have similar names

Other

I am running Cypress 13.7.1 on a mac with MacOS Sonoma 14.1.1. I am running the tests in a chrome window (123.0.6213.105.

Let me know if you need any other information...

jennifer-shehane commented 3 months ago

I can definitely see how this is annoying. We don't have any work planned around this area of code anything soon, but I'll leave this open as an enhancement to be considered.

luis-pato commented 3 months ago

I can definitely see how this is annoying. We don't have any work planned around this area of code anything soon, but I'll leave this open as an enhancement to be considered.

Thank you!