Skip to content

Commit 11f840a

Browse files
committed
ci: add wait
1 parent 4931f4e commit 11f840a

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

test/functional/android/webdriver/device_test.rb

+9-4
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,19 @@ def test_implicit_wait
122122
assert(@driver.manage.timeouts.implicit_wait = @@core.default_wait)
123123
end
124124

125+
# Not so stable on CI
125126
def test_rotate
126127
assert_equal :portrait, @driver.orientation
127128

128-
@driver.rotation = :landscape
129-
assert_equal :landscape, @driver.orientation
129+
@@core.wait do
130+
@driver.rotation = :landscape
131+
assert_equal :landscape, @driver.orientation
132+
end
130133

131-
@driver.rotation = :portrait
132-
assert_equal :portrait, @driver.orientation
134+
@@core.wait do
135+
@driver.rotation = :portrait
136+
assert_equal :portrait, @driver.orientation
137+
end
133138
end
134139

135140
def test_logs

0 commit comments

Comments
 (0)