You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yastrenky
changed the title
Screen will not maximize the window if you use resizeWindow first
Screen will not maximize the window if you first use resizeWindow
Jan 14, 2025
We appreciate you taking the time to share information about this issue. We reproduced the bug and added this ticket to our internal task queue. We'll update this thread once we have news.
<!--
Thank you for your contribution.
Before making a PR, please read our contributing guidelines at
https://github.com/DevExpress/testcafe/blob/master/CONTRIBUTING.md#code-contribution
We recommend creating a *draft* PR, so that you can mark it as 'ready
for review' when you are done.
-->
## Purpose
Window did not maximize properly after resizing.
## Approach
Remove redundant use of _setDeviceMetricsOverride in resize window using
CDP.
## References
closes#8360
## Pre-Merge TODO
- [ ] Write tests for your proposed changes
- [ ] Make sure that existing tests do not fail
---------
Co-authored-by: Bayheck <[email protected]>
What is your Scenario?
Using native automation enabled
Navigate to www.google.com
Use method resizeWindow
Use method maximizeWindow
What is the Current behavior?
When using native automation, testcafe won't maximize if you use the resize window method first
What is the Expected behavior?
Testcafe should maximize if you use the resize window method first in native automation
What is the public URL of the test page? (attach your complete example)
www.google.com
What is your TestCafe test code?
fixture('Resize and maximize window')
test('Use maximize window after resize' async t =>{
await t.navigateTo("https://www.google.com")
await t.resizeWindow(1024, 400)
await t.maximizeWindow()
})
Your complete configuration file
No response
Your complete test report
No response
Screenshots
Steps to Reproduce
TestCafe version
3.7.1
Node.js version
v20.15.0
Command-line arguments
testcafe chrome
Browser name(s) and version(s)
Chrome Version 131.0.6778.265
Platform(s) and version(s)
MacOs Sonoma Version 14.3.1 (23D60)
Other
No response
The text was updated successfully, but these errors were encountered: