We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6b0753 commit 93d4eafCopy full SHA for 93d4eaf
1 file changed
tests/Js/WindowTest.php
@@ -102,8 +102,9 @@ public function testWindowMaximize()
102
$session->maximizeWindow();
103
$session->wait(1000, 'false');
104
105
- $script = 'return Math.abs(screen.availHeight - window.outerHeight);';
106
-
107
- $this->assertLessThanOrEqual(100, $session->evaluateScript($script));
+ $unusedWidth = $session->evaluateScript('screen.availWidth - window.outerWidth');
+ $unusedHeight = $session->evaluateScript('screen.availHeight - window.outerHeight');
+ $this->assertLessThanOrEqual(0, $unusedWidth);
108
+ $this->assertLessThanOrEqual(0, $unusedHeight);
109
}
110
0 commit comments