@@ -6,13 +6,16 @@ import { newContact } from './utils/create_contact';
66import { joinCommunity } from './utils/join_community' ;
77import { SupportedPlatformsType , closeApp , openAppTwoDevices } from './utils/open_app' ;
88
9- iosIt ( 'Send image to community' , 'medium' , sendImageCommunityiOS ) ;
10- androidIt ( 'Send image to community' , 'medium' , sendImageCommunityAndroid ) ;
9+ iosIt ( 'Send image to community' , 'medium' , sendImageCommunityiOS , true ) ;
10+ androidIt ( 'Send image to community' , 'medium' , sendImageCommunityAndroid , true ) ;
11+
12+ // Tests skipped due to both platforms having unique issues, have made a ticket
13+ // to investigate further https://optf.atlassian.net/browse/QA-486
1114
1215async function sendImageCommunityiOS ( platform : SupportedPlatformsType ) {
1316 const { device1, device2 } = await openAppTwoDevices ( platform ) ;
1417 const testMessage = 'Testing sending images to communities' ;
15- const testImageMessage = `Image message + ${ new Date ( ) . getTime ( ) } ` ;
18+ const testImageMessage = `Image message + ${ new Date ( ) . getTime ( ) } - ${ platform } ` ;
1619 // Create user A and user B
1720 const [ Alice , Bob ] = await Promise . all ( [
1821 newUser ( device1 , USERNAME . ALICE ) ,
@@ -22,7 +25,7 @@ async function sendImageCommunityiOS(platform: SupportedPlatformsType) {
2225 await Promise . all ( [ device1 . navigateBack ( ) , device2 . navigateBack ( ) ] ) ;
2326 await joinCommunity ( device1 , testCommunityLink , testCommunityName ) ;
2427 await joinCommunity ( device2 , testCommunityLink , testCommunityName ) ;
25- await Promise . all ( [ device1 . scrollToBottom ( platform ) , device2 . scrollToBottom ( platform ) ] ) ;
28+ await Promise . all ( [ device1 . scrollToBottom ( ) , device2 . scrollToBottom ( ) ] ) ;
2629 await device1 . sendMessage ( testMessage ) ;
2730 await device1 . sendImage ( platform , testImageMessage , true ) ;
2831 await device2 . replyToMessage ( Alice , testImageMessage ) ;
@@ -32,7 +35,7 @@ async function sendImageCommunityiOS(platform: SupportedPlatformsType) {
3235async function sendImageCommunityAndroid ( platform : SupportedPlatformsType ) {
3336 const { device1, device2 } = await openAppTwoDevices ( platform ) ;
3437 const time = await device1 . getTimeFromDevice ( platform ) ;
35- const testMessage = `Testing sending images to communities + ${ time } ` ;
38+ const testMessage = `Testing sending images to communities + ${ time } - ${ platform } ` ;
3639 // Create user A and user B
3740 const [ Alice ] = await Promise . all ( [
3841 newUser ( device1 , USERNAME . ALICE ) ,
@@ -44,11 +47,10 @@ async function sendImageCommunityAndroid(platform: SupportedPlatformsType) {
4447 joinCommunity ( device2 , testCommunityLink , testCommunityName ) ,
4548 ] ) ;
4649 await device1 . sendImageWithMessageAndroid ( testMessage ) ;
47- await device2 . scrollToBottom ( platform ) ;
50+ await device2 . scrollToBottom ( ) ;
4851 await device2 . longPressMessage ( testMessage ) ;
4952 await device2 . clickOnByAccessibilityID ( 'Reply to message' ) ;
5053 await device2 . sendMessage ( replyMessage ) ;
51- await device1 . onIOS ( ) . scrollToBottom ( platform ) ;
5254 await device1 . waitForTextElementToBePresent ( {
5355 strategy : 'accessibility id' ,
5456 selector : 'Message body' ,
0 commit comments