We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bee794 commit 83d283eCopy full SHA for 83d283e
tests/Js/WindowTest.php
@@ -90,8 +90,9 @@ public function testWindowMaximize()
90
$session->maximizeWindow();
91
$session->wait(1000, 'false');
92
93
- $script = 'return Math.abs(screen.availHeight - window.outerHeight);';
94
-
95
- $this->assertLessThanOrEqual(100, $session->evaluateScript($script));
+ $unusedWidth = $session->evaluateScript('screen.availWidth - window.outerWidth');
+ $unusedHeight = $session->evaluateScript('screen.availHeight - window.outerHeight');
+ $this->assertLessThanOrEqual(0, $unusedWidth);
96
+ $this->assertLessThanOrEqual(0, $unusedHeight);
97
}
98
0 commit comments