cypress-io / cypress

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

Restore ability to open a tab in the cypress testing window #29451

Open UglyHobbitFeet opened 6 months ago

UglyHobbitFeet commented 6 months ago

Current behavior

Since 13.5.0 the ability to click on the url within the cypress window and have it open in the same browser window has been removed without explanation.

Desired behavior

Please restore this functionality as it is crucial to our (and others) testing environments. Example (https://github.com/cypress-io/cypress/issues/29301)

Test code to reproduce

Clicking on the aforementioned url

Cypress Version

13.8.1

Node version

18.17.0

Operating System

CentOS7

Debug Logs

No response

Other

No response

jennifer-shehane commented 6 months ago

I'll leave this open as a request, since a couple of other people have asked, but the change was intended and we don't have any plans at the moment to change this behavior.

UglyHobbitFeet commented 6 months ago

Awesome, thanks! It's a big deal for us as it provides a mock instance we can navigate through (after tests have completed) and allows us to manually input URLs into the new browser tab bar and retain the cache/cookies/fixture data etc

On Wed, May 1, 2024 at 1:42 PM Jennifer Shehane @.***> wrote:

I'll leave this open as a request, since a couple of other people have asked, but the change was intended and we don't have any plans at the moment to change this behavior.

— Reply to this email directly, view it on GitHub https://github.com/cypress-io/cypress/issues/29451#issuecomment-2088825084, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALBDS7XQXAP4EN3MUOR7LQDZAESQ7AVCNFSM6AAAAABHB4OQZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBYHAZDKMBYGQ . You are receiving this because you authored the thread.Message ID: @.***>

homostellaris commented 1 month ago

This feature was super valuable to me because it meant the Cypress test runner was the only thing I need to use for development & testing. I want to be able to open dev tools and see my app full screen but with the dangling state and mocks Cypress has used. I can technically do this within the main tab running in the test runner but its way too small and fiddly and difficult to resize. This makes the Cypress test runner a great testing GUI but a bad development server. The option to open in a new tab and develop as usual was so powerful because it meant I could do both and control the state really easily with mocks. Now I have to have a separate window open and mess around setting up test data to get the state I want rather than leveraging the fixtures and mocks I've spent time creating in Cypress!