Skip to content

Commit 92343f4

Browse files
authored
test: tweak test case (#245)
1 parent 99ceb6e commit 92343f4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

test/functional/ios/ios/device_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def test_context_related
119119
assert_equal 'NATIVE_APP', @@driver.current_context
120120

121121
@@driver.back # go to top
122-
@@core.wait { assert @@driver.available_contexts.size == 2 }
122+
@@core.wait { assert [1, 2].member? @@driver.available_contexts.size }
123123
end
124124

125125
def test_app_string

test/functional/ios/ios/mobile_commands_test.rb

+3
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ def test_source
127127
assert !json.empty?
128128
assert !xml.empty?
129129
assert !description.empty? # get a vanilla xcuitest description data
130+
131+
xml2 = @driver.execute_script 'mobile: source', { format: :xml, excludedAttributes: ['visible'] }
132+
assert !xml2.empty?
130133
end
131134

132135
def test_device_info

0 commit comments

Comments
 (0)