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
Windows OS cypress remains on second screen no matter what you do #29423
Comments
This is a known issue with Microsoft Windows 10 and 11 that is unrelated to Cypress. You may find the Microsoft support article Some Programs Are Displayed Off the Screen helpful. Or Google "windows move window to current monitor" for a selection of articles and videos on this topic.
|
None of the listed methods for retrieving the window is working. I have never had this issue with any other application and I use different setups daily. Other browsers get brought back to main screen. To me it seems Cypress somehow remembers where it was last used. I have tried Method 1) There is no option for maximize on the taskbar, but cascade windows does not bring cypress back to main screen. You can see that the app opens to another screen when you press it to be active. Method 2) There is no option for move. Method 3) Will not help as I would like to be able to retrieve the app even when I don't have additional screen available. I have also tried: Activating the app screen by clicking on taskbar and pressing windows+shift+arrowkeys. If you have another screen attached in wrong orientation, this works, but if you don't have external screen attached you are not able to move it with these commands either. |
Ok it seems that to be able to retrieve the screen when you don't have the second screen what you need to do is
|
Current behavior
If you use cypress on the second screen in Windows 10 and close cypress from the browser x, cypress will remain on the screen it was last displayed on. If your screen setup changes you are not able to access the window again before connecting to another screen and then adjusting your screen settings to match the one you had when you last used cypress. If you do the removing of screen while cypress is running, all is ok.
Desired behavior
If you remove the second screen after closing the software, and restart the software, you are able to retrieve the window to your screen or it will automatically spawn on your main screen.
Test code to reproduce
Start cypress with "npx cypress open".
Move Cypress window to the second screen of your setup.
Close Cypress from the browser x.
Detach second screen or re-arrange screen setup from settings to be different.
Run "npx cypress open" again.
Cypress opens on the screen that does not exist.
Cypress Version
13.6.4
Node version
v18.18.2
Operating System
Edition Windows 10 Pro Version 22H2 Installed on 03/05/2022 OS build 19045.4291 Experience Windows Feature Experience Pack 1000.19056.1000.0
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: