File tree 1 file changed +10
-6
lines changed
test/functional/android/android
1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -135,13 +135,17 @@ def test_start_activity
135
135
e = @@core . wait { @driver . current_activity }
136
136
assert true , e . include? ( 'Node' )
137
137
138
- @driver . start_activity app_package : 'com.android.settings' , app_activity : '.Settings' ,
139
- app_wait_package : 'com.android.settings' , app_wait_activity : '.Settings'
140
- e = @@core . wait { @driver . current_activity }
141
- assert true , e . include? ( 'Settings' )
138
+ if @@core . automation_name == :espresso
139
+ @driver . start_activity app_package : 'io.appium.android.apis' , app_activity : '.ApiDemos' ,
140
+ app_wait_activity : '.ApiDemos'
141
+ else
142
+ @driver . start_activity app_package : 'com.android.settings' , app_activity : '.Settings' ,
143
+ app_wait_package : 'com.android.settings' , app_wait_activity : '.Settings'
144
+ e = @@core . wait { @driver . current_activity }
145
+ assert true , e . include? ( 'Settings' )
142
146
143
- @driver . start_activity app_package : 'io.appium.android.apis' ,
144
- app_activity : '.ApiDemos'
147
+ @driver . start_activity app_package : 'io.appium.android.apis' , app_activity : '.ApiDemos'
148
+ end
145
149
end
146
150
147
151
def test_current_package
You can’t perform that action at this time.
0 commit comments