Skip to content

Commit 9117de2

Browse files
committed
ci: relax tests for uia2
1 parent e561c8d commit 9117de2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/functional/android/webdriver/w3c_actions_test.rb

+7-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,13 @@ def test_tap_scroll
6262
end
6363
@driver.manage.timeouts.implicit_wait = @@core.default_wait
6464

65-
el = @@core.wait { @driver.find_element(:accessibility_id, 'Lists') }
66-
assert_equal 'Lists', el.text
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
6772
end
6873

6974
def test_double_tap

0 commit comments

Comments
 (0)