@@ -2,6 +2,8 @@ import { longText } from '../../constants';
2
2
import { bothPlatformsItSeparate } from '../../types/sessionIt' ;
3
3
import { open_Alice1_Bob1_friends } from './state_builder' ;
4
4
import { SupportedPlatformsType , closeApp } from './utils/open_app' ;
5
+ import { sleepFor } from './utils' ;
6
+ import { ConversationItem } from './locators/home' ;
5
7
6
8
bothPlatformsItSeparate ( {
7
9
title : 'Send long message 1:1' ,
@@ -20,7 +22,7 @@ async function sendLongMessageIos(platform: SupportedPlatformsType) {
20
22
// Open device and server
21
23
const {
22
24
devices : { alice1, bob1 } ,
23
- prebuilt : { alice } ,
25
+ prebuilt : { alice, bob } ,
24
26
} = await open_Alice1_Bob1_friends ( {
25
27
platform,
26
28
focusFriendsConvo : true ,
@@ -29,7 +31,10 @@ async function sendLongMessageIos(platform: SupportedPlatformsType) {
29
31
await alice1 . sendMessage ( longText ) ;
30
32
// Reply to message (User B to User A)
31
33
const sentMessage = await bob1 . replyToMessage ( alice , longText ) ;
32
- // Check reply came through on alice1
34
+ // The CI kept throwing a stale element error here so we leave the convo and come back
35
+ await alice1 . navigateBack ( ) ;
36
+ await alice1 . clickOnElementAll ( new ConversationItem ( alice1 , bob . userName ) ) ;
37
+ await sleepFor ( 1000 ) ;
33
38
await alice1 . findMessageWithBody ( sentMessage ) ;
34
39
// Close app
35
40
await closeApp ( alice1 , bob1 ) ;
0 commit comments