Skip to content

Commit 87de9e2

Browse files
authored
test: add tag_name for android (#421)
1 parent 9a5dd20 commit 87de9e2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/functional/android/android/search_context_test.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ def teardown
3131

3232
def test_uiautomator
3333
skip 'Espresso does not support uiautomator' if @@core.automation_name == :espresso
34-
assert @driver.find_element :uiautomator, 'new UiSelector().clickable(true)'
34+
e = @driver.find_element :uiautomator, 'new UiSelector().clickable(true)'
35+
assert e
36+
assert_equal "Access'ibility", e.tag_name
3537
end
3638

3739
def test_viewtag
@@ -46,6 +48,7 @@ def test_datamatcher
4648

4749
e = @driver.find_elements :data_matcher, { name: 'hasEntry', args: %w(title Animation) }.to_json
4850
assert_equal 1, e.size
51+
assert_equal 'Animation', e.first.tag_name
4952

5053
e.first.click
5154
@driver.find_element :accessibility_id, 'Cloning' # no error

0 commit comments

Comments
 (0)