Incorrect screen size when resizeWindow()
is called after maximizeWindow()
#8157
Labels
TYPE: bug
The described behavior is considered as wrong (bug).
What is your Scenario?
When testing my browser provider plugin I found that screen sizes are off, when
resizeWindow()
is called aftermaximizeWindow()
.What is the Current behavior?
When I call
resizeWindow()
aftermaximizeWindow()
,then in Chrome (windowed mode, Windows 10) height is off by -1px,
and in Firefox (windowed mode, Windows 10) height is off by +10px and width is off by +4px.
What is the Expected behavior?
The screen size should be the size that was set by in
resizeWindow()
.What is the public URL of the test page? (attach your complete example)
I created a repository: https://github.com/htho/testcafe-repro-resize-after-maximize
What is your TestCafe test code?
Your complete configuration file
No response
Your complete test report
Screenshots
No response
Steps to Reproduce
> git clone https://github.com/htho/testcafe-repro-resize-after-maximize.git
> cd testcafe-repro-resize-after-maximize
> npm i
> npm run test
TestCafe version
3.5.0
Node.js version
21.6.2
Command-line arguments
testcafe chrome,firefox test.tc.ts
Browser name(s) and version(s)
Firefox 123, Chrome 122
Platform(s) and version(s)
Windows 10
Other
No response
The text was updated successfully, but these errors were encountered: