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

Cypress open dont show up window #2667

Closed
aldarund opened this issue Oct 26, 2018 · 42 comments · Fixed by #2853
Closed

Cypress open dont show up window #2667

aldarund opened this issue Oct 26, 2018 · 42 comments · Fixed by #2853
Assignees
Milestone

Comments

@aldarund
Copy link

aldarund commented Oct 26, 2018

Current behavior:

cypress open dont show up cypress window. It load for sometime and nothing.

cypress run work fine.

I did clean cache ( c:\Users\shape\AppData\Roaming\Cypress\ & c:\Users\shape\AppData\Local\Cypress\ ), i did reinstall cypress. No luck.

here is cypress log from cypress open
https://gist.github.com/aldarund/7261313ecf1a729608f4d34008914c81

There is like 4-5 Cypress.exe running after open.
And when i stop it i see shortly a blinking window ( like milliseconds)

Desired behavior:

Cypress opens a runner and window show up

Steps to reproduce:

just cypress open

Versions

Cypress 3.1
Node 11
Windows 10 x64
Chrome Version 71.0.3578.20 (Official Build) beta (64-bit)

@aldarund aldarund changed the title Cypress Open dont show up any window Cypress Open dont show up window Oct 26, 2018
@aldarund aldarund changed the title Cypress Open dont show up window Cypress open dont show up window Oct 26, 2018
@Konstruktour
Copy link

are u sure that it is not opened at all? sometime i have the issue that the dashboard/runner is shown outside of the screen.

@aldarund
Copy link
Author

aldarund commented Oct 29, 2018

@Konstruktour Yes, it dont open. There no window in task panel and as i remember there should be. The only thing that i can notice is that when i stop some window ( console window ??) blinking and thats all.

@jennifer-shehane
Copy link
Member

Hey @aldarund, can you run cypress open with another project, like our cypress-example-kitchensink?

I would like to know if it is related to your project's test code or not.

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Oct 30, 2018
@aldarund
Copy link
Author

@jennifer-shehane it is not related to project code, it was working before on same code. I tried on your linked repo and its same behaviour.
Let me know what else i can provide to help debug it :)

@zerdos
Copy link

zerdos commented Oct 31, 2018

The problem is node 11, on windows environment. Works fine with node 10.3

@zerdos
Copy link

zerdos commented Oct 31, 2018

maybe related:
nodejs/node#21316

@zerdos
Copy link

zerdos commented Oct 31, 2018

Yes, adding windowsHide in the spawn options (cypress/cli/lib/exec/spawn.js, line 90), solves the problem in windows with node 11.

I will send a PR later;)

@ryan-mars
Copy link

Having the same issue here. Node 11 + Windows 10 + Cypress 3.1.1

Running node_modules\.bin\cypress open doesn't show the browser. cypress run works fine.

@zerdos
Copy link

zerdos commented Nov 7, 2018

PR added.

@Liverpudlian
Copy link

Awesome, just experiencing this issue now 👍

@chrisbreiding
Copy link
Contributor

The code for this is done, but this has yet to be released. We'll update this issue and reference the changelog when it's released.

@brian-mann
Copy link
Member

Released in 3.1.2.

@jennifer-shehane jennifer-shehane removed the stage: needs information Not enough info to reproduce the issue label Nov 19, 2018
@aldarund
Copy link
Author

aldarund commented Nov 20, 2018

@brian-mann @chrisbreiding 3.1.2 dont fix the issue. Your latest refactoring to that PR broke it again.. After them you are setting windowsHide to getEnvOverrides which ends up into env vars and it dont work.

@xiaoxu12
Copy link

Why not show up windows?When do you want to solve it. It also can not open chrome in window 10

@kuceb
Copy link
Contributor

kuceb commented Nov 28, 2018

the problem is we set windowsHide as a prop of options.env, when it should be a prop of options
https://nodejs.org/api/child_process.html#child_process_child_process_spawn_command_args_options
I'll open up a PR to fix this

@kuceb kuceb reopened this Nov 28, 2018
kuceb added a commit that referenced this issue Nov 28, 2018
brian-mann pushed a commit that referenced this issue Dec 3, 2018
* Revert "Issue 21316 windows node11 (#2699) (fixes #2667)"

This reverts commit 54ce93b.

* add windowsHide prop

* fix test name
@brian-mann
Copy link
Member

Released in 3.1.3.

@Pascalmh
Copy link

In case this still happens you can Shift + Right Click on the Icon in the Toolbar an then click Maximize - that should bring the Window into the foreground and your are able to use it.

@grzegorz-jazurek
Copy link

In case this still happens you can Shift + Right Click on the Icon in the Toolbar an then click Maximize - that should bring the Window into the foreground and your are able to use it.

@Pascalmh thanks man!

@PawelEpicode
Copy link

@grzegorz-jazurek you saved my life :)

@randomcoggles
Copy link

In my case I had to uninstall Cypress and kill cypress folder in AppData folder(Kill all caches)

@vibes121
Copy link

@grzegorz-jazurek you save my life too:-)

@slappinlappin
Copy link

In case this still happens you can Shift + Right Click on the Icon in the Toolbar an then click Maximize - that should bring the Window into the foreground and your are able to use it.

This has saved me so many times. Thank you

@sanjshrestha
Copy link

how to fix this one i faced this issue

@sanjshrestha
Copy link

how to fix this one i faced this issue

how to fix this one i faced this issue

@Harsh-Personal
Copy link

Any resolution for mac on this?

@wctiger
Copy link

wctiger commented Mar 28, 2022

We have been using Cypress v6.4 for over a year but faced this issue the first time today. The workaround mentioned by @Pascalmh did solve the problem for me, but I wonder if it's a problem fixed in later versions?

@annapopelka
Copy link

Enter "npm run cypress: open" in PowerShell (instead of CMD).

@Shw07
Copy link

Shw07 commented Jun 6, 2022

I am also facing same issue. Cypress window is blinking for a sec then closed

@abdullahsl2
Copy link

@Konstruktour Yes, it dont open. There no window in task panel and as i remember there should be. The only thing that i can notice is that when i stop some window ( console window ??) blinking and thats all.

i have also face this issue have you solved it

@ghost
Copy link

ghost commented Jun 17, 2022

I am also facing the same issue
I have use the npx cypress open but it open and close after some time.
But if we change the version it will support the same command.

@rajendran-k
Copy link

After upgrading to cypress 10.3.0 am seeing this issue in Windows. It does open but window is laying somewhere else and cant focus to it. Current hack am using is Shift+ Right click and then maximize.

@saimahanif38
Copy link

having the same issues resolved by this "Current hack am using is Shift+ Right click and then maximize."

@alexcatanet
Copy link

alexcatanet commented Sep 27, 2022

@Pascalmh, thx for the workaround, it's working but I'm still wondering why it was working before (I'm using the same machine as before) and now, after a while, it's failing to work properly when running 'npm run cypress:open' in bash

I'm using Cypress vers. 9.7.0

@gtugwell
Copy link

Yeah, also experiencing this same issue on Windows 11, running cypress version 10.7.0, 10.8.0, and 10.9.0. Was able to get it back into focus by doing the Shift + Right click and selecting maximize as well.

@tripathi040
Copy link

tripathi040 commented Oct 17, 2022

Facing the same issue on 17 october 2022. Was able to get it back into focus by doing the Shift + Right click and selecting maximize as well.

====update====
After few runs it is fixed on its own

@sherryysj
Copy link

Facing the same issue on 17 october 2022. Was able to get it back into focus by doing the Shift + Right click and selecting maximize as well.

====update==== After few runs it is fixed on its own

Thanks! This is really helpful!!

@AishwaryaRavindra
Copy link

AishwaryaRavindra commented Jan 13, 2023

when i Give this npx cypress open command, In a Visual studio code editor terminal, the cypress test runner window is opening, but it is not visible[not able to open] i can see the Cypress window icon only in Taskbar.

@kamiljjaworski
Copy link

Hover over the cypress icon on your task bar and you'll see the mini-window of cypress UI. Right-click on that mini-window and click "maximize"

@AishwaryaRavindra
Copy link

Hover over the cypress icon on your task bar and you'll see the mini-window of cypress UI. Right-click on that mini-window and click "maximize"

yes, i got it ..Thanks for the Solution......

@gracewang129
Copy link

Ok, turned out it was on my laptop screen, I I turned that off but it reset itself after I reconnected the monitor, and my laptop was closed so I can't see it.

@AishwaryaRavindra
Copy link

how to write the code for Capturing the error message in cypress.

@madmacc
Copy link

madmacc commented Nov 13, 2023

Facing the same issue on 17 october 2022. Was able to get it back into focus by doing the Shift + Right click and selecting maximize as well.

====update==== After few runs it is fixed on its own

Great answer, worked for me with Cypress 13.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.