Skip to content

Commit 4931f4e

Browse files
committed
ci: tweak flaky case
1 parent cb6ef1a commit 4931f4e

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

test/functional/android/webdriver/w3c_actions_test.rb

+2-9
Original file line numberDiff line numberDiff line change
@@ -54,21 +54,14 @@ def test_tap_scroll
5454
@driver.manage.timeouts.implicit_wait = 3
5555

5656
if @@core.automation_name == :espresso
57-
# Skip in espresso, since espresso show a target element in recyclerview even it is out of the view
57+
el = @@core.wait { @driver.find_element(:accessibility_id, 'Lists') }
58+
assert_equal 'Lists', el.text
5859
else
5960
assert_raises ::Selenium::WebDriver::Error::NoSuchElementError do
6061
@driver.find_element(:accessibility_id, 'Custom')
6162
end
6263
end
6364
@driver.manage.timeouts.implicit_wait = @@core.default_wait
64-
65-
if @@core.automation_name == :espresso
66-
el = @@core.wait { @driver.find_element(:accessibility_id, 'Lists') }
67-
assert_equal 'Lists', el.text
68-
else
69-
# Sometimes UIA2 scrolls a element too much
70-
@driver.find_element(:accessibility_id, 'WebView')
71-
end
7265
end
7366

7467
def test_double_tap

0 commit comments

Comments
 (0)