File tree 3 files changed +4
-4
lines changed
3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ def test_re_install
110
110
@driver . remove_app 'io.appium.android.apis'
111
111
assert !@driver . app_installed? ( 'io.appium.android.apis' )
112
112
113
- @driver . install_app "#{ Dir . pwd } /#{ Caps . android [ :caps ] [ :app ] } "
113
+ @driver . install_app "#{ Dir . pwd } /#{ Caps . android [ :desired_capabilities ] [ :app ] } "
114
114
assert @driver . app_installed? ( 'io.appium.android.apis' )
115
115
116
116
assert !@driver . app_installed? ( 'fake_app' )
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ class AppiumLibCoreTest
5
5
module WebDriver
6
6
class CreateSessionTestTest < AppiumLibCoreTest ::Function ::TestCase
7
7
def test_mjsonwp
8
- caps = Caps . android [ :caps ] . merge ( { forceMjsonwp : true } )
8
+ caps = Caps . android [ :desired_capabilities ] . merge ( { forceMjsonwp : true } )
9
9
new_caps = Caps . android . merge ( { caps : caps } )
10
10
core = ::Appium ::Core . for ( new_caps )
11
11
@@ -20,7 +20,7 @@ def test_mjsonwp
20
20
21
21
# Require Appium 1.7.2+
22
22
def test_w3c
23
- caps = Caps . android [ :caps ] . merge ( { forceMjsonwp : false } )
23
+ caps = Caps . android [ :desired_capabilities ] . merge ( { forceMjsonwp : false } )
24
24
new_caps = Caps . android . merge ( { caps : caps } )
25
25
core = ::Appium ::Core . for ( new_caps )
26
26
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ def test_page_source
68
68
xml = REXML ::Document . new s_source
69
69
70
70
assert s_source . include? ( 'io.appium.android.apis' )
71
- assert_equal expected , xml [ 1 ] . elements . each ( '//*' ) { |v | v } . map ( &:name ) # rubocop:disable Lint/Void:
71
+ assert_equal expected , xml [ 2 ] . elements . each ( '//*' ) { |v | v } . map ( &:name ) # rubocop:disable Lint/Void:
72
72
end
73
73
74
74
# def test_location
You can’t perform that action at this time.
0 commit comments