Skip to content

Commit 12b76c5

Browse files
committed
Stabilize full screen window tests
1 parent c034c2e commit 12b76c5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

rb/spec/integration/selenium/webdriver/window_spec.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ module WebDriver
107107
window.size = old_size = Dimension.new(200, 200)
108108

109109
window.maximize
110-
111110
wait.until { window.size != old_size }
112111

113112
new_size = window.size
@@ -117,13 +116,12 @@ module WebDriver
117116

118117
# Edge: Not Yet - https://dev.windows.com/en-us/microsoft-edge/platform/status/webdriver/details/
119118
it 'can make window full screen', only: {window_manager: true, browser: [:ie, :firefox]} do
120-
window.maximize
121-
old_size = window.size
119+
window.size = old_size = Dimension.new(200, 200)
122120

123121
window.full_screen
124122
wait.until { window.size != old_size }
125-
new_size = window.size
126123

124+
new_size = window.size
127125
expect(new_size.width).to be > old_size.width
128126
expect(new_size.height).to be > old_size.height
129127
end

0 commit comments

Comments
 (0)