@@ -33,13 +33,19 @@ test('iOS simulator-only commands reject iOS devices and Android', () => {
3333} ) ;
3434
3535test ( 'simulator-only iOS commands with Android support reject iOS devices' , ( ) => {
36- for ( const cmd of [ 'record' , 'settings' , 'swipe' ] ) {
36+ for ( const cmd of [ 'record' , 'settings' ] ) {
3737 assert . equal ( isCommandSupportedOnDevice ( cmd , iosSimulator ) , true , `${ cmd } on iOS sim` ) ;
3838 assert . equal ( isCommandSupportedOnDevice ( cmd , iosDevice ) , false , `${ cmd } on iOS device` ) ;
3939 assert . equal ( isCommandSupportedOnDevice ( cmd , androidDevice ) , true , `${ cmd } on Android` ) ;
4040 }
4141} ) ;
4242
43+ test ( 'swipe supports iOS simulator, iOS device, and Android' , ( ) => {
44+ assert . equal ( isCommandSupportedOnDevice ( 'swipe' , iosSimulator ) , true , 'swipe on iOS sim' ) ;
45+ assert . equal ( isCommandSupportedOnDevice ( 'swipe' , iosDevice ) , true , 'swipe on iOS device' ) ;
46+ assert . equal ( isCommandSupportedOnDevice ( 'swipe' , androidDevice ) , true , 'swipe on Android' ) ;
47+ } ) ;
48+
4349test ( 'reinstall supports iOS simulator, iOS device, and Android' , ( ) => {
4450 assert . equal ( isCommandSupportedOnDevice ( 'reinstall' , iosSimulator ) , true , 'reinstall on iOS sim' ) ;
4551 assert . equal ( isCommandSupportedOnDevice ( 'reinstall' , iosDevice ) , true , 'reinstall on iOS device' ) ;
0 commit comments