Incorrect screen size case failed e2e tests #4268
Unanswered
ayoubmehd
asked this question in
Help Needed
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a feature in our app that show a different screen when it's bigger than 1040, this suppose to be on mobile only and it shows up on desktop and case tests to fail
this give me the correct screen size set in the config
result
{ height: 1080, width: 1920 }
This is my screen resolution
The size from the browser window is smaller than it should be
result
{ resolution: { height: 600, width: 800 }
everything work fine when removing
--headless
option from chrome optionsIssue is happening on github actions and on my laptop
Config:
My system info
Os: Linux Mint 21.2 Cinnamon v5.8.4
Linux kernal: 5.15.0-119-generic
Nightwatch version: 1.7.13
Chrome version: 128
Chromedriver version: 128
selenium-server: 3.141.59
I tried to upgrade Nightwatch to version 2.6.25, and the same issue with the resolution but it shows a different error
Full error
That led me to upgrade jdk 21 but same issue
Update:
I got the same behavior with nightwatch 3.8.0
Beta Was this translation helpful? Give feedback.
All reactions