Skip to content

Commit 3e628d0

Browse files
committed
update tests
1 parent 10e5166 commit 3e628d0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/functional/android/android/device_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_background_reset
7777
end
7878
assert 'An element could not be located on the page using the given search parameters.', error.message
7979

80-
@driver.reset
80+
@driver.activate_app('io.appium.android.apis')
8181
end
8282

8383
e = @driver.wait(timeout: 60) { |d| d.find_element :accessibility_id, 'App' }

test/functional/android/android/search_context_test.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -48,12 +48,12 @@ def test_viewtag
4848
def test_datamatcher
4949
skip 'UiAutomator2 does not support viewtag' if @@core.automation_name != :espresso
5050

51-
e = @driver.find_elements :data_matcher, { name: 'hasEntry', args: %w(title Animation) }.to_json
52-
assert_equal 1, e.size
53-
assert_equal 'Animation', e.first.tag_name
54-
assert_equal ::Appium::Core::Element, e.class
51+
es = @driver.find_elements :data_matcher, { name: 'hasEntry', args: %w(title Animation) }.to_json
52+
assert_equal 1, es.size
53+
assert_equal 'Animation', es.first.tag_name
54+
assert_equal ::Appium::Core::Element, es.first.class
5555

56-
e.first.click
56+
es.first.click
5757
@driver.find_element :accessibility_id, 'Cloning' # no error
5858
@driver.back
5959
end

0 commit comments

Comments
 (0)