@@ -2,6 +2,7 @@ const appium = new CodeceptJS.Appium();
22
33const str_ap = "text" ;
44const num_ap = 1 ;
5+ const appPackage = "com.example.android.apis" ;
56
67appium . touchPerform ( ) ; // $ExpectError
78appium . touchPerform ( "press" ) ; // $ExpectError
@@ -16,8 +17,8 @@ appium.hideDeviceKeyboard("pressKey", "Done", "Done"); // $ExpectError
1617
1718appium . removeApp ( ) ; // $ExpectError
1819appium . removeApp ( "appName" ) ; // $ExpectType void
19- appium . removeApp ( "appName" , "com.example.android.apis" ) ; // $ExpectType void
20- appium . removeApp ( "appName" , "com.example.android.apis" , "remove" ) ; // $ExpectError
20+ appium . removeApp ( "appName" , appPackage ) ; // $ExpectType void
21+ appium . removeApp ( "appName" , appPackage , "remove" ) ; // $ExpectError
2122
2223appium . runOnIOS ( str_ap , ( ) => { } ) ; // $ExpectType void
2324appium . runOnAndroid ( str_ap , ( ) => { } ) ; // $ExpectType void
@@ -40,7 +41,9 @@ appium._switchToContext(str_ap); // $ExpectType void
4041appium . switchToWeb ( ) ; // $ExpectType Promise<void>
4142appium . switchToNative ( ) ; // $ExpectType Promise<void>
4243appium . switchToNative ( str_ap ) ; // $ExpectType Promise<void>
43- appium . startActivity ( ) ; // $ExpectType Promise<void>
44+ appium . startActivity ( ) ; // $ExpectError
45+ appium . startActivity ( appPackage ) ; // $ExpectError
46+ appium . startActivity ( appPackage , '.RegisterUserActivity' ) ; // $ExpectType Promise<void>
4447appium . setNetworkConnection ( ) ; // $ExpectType Promise<{}>
4548appium . setSettings ( str_ap ) ; // $ExpectType void
4649appium . hideDeviceKeyboard ( ) ; // $ExpectType void
0 commit comments