@@ -44,12 +44,13 @@ const test = (config: NativeConfig) => {
44
44
45
45
// update the last visible message
46
46
lastVisibleMessageId = res ?. at ( 0 ) ?. item ?. reportActionID ;
47
- console . debug ( '[E2E] Current visible message:' , lastVisibleMessageId ) ;
48
-
47
+ console . debug ( '[E2E] Current visible message:' , lastVisibleMessageId , verificationStarted , linkedReportActionID ) ;
48
+ console . log ( 'TEST_onViewableItemsChanged.1' , JSON . stringify ( res ?. at ( 0 ) ?. item , null , 2 ) ) ;
49
49
if ( ! verificationStarted && lastVisibleMessageId === linkedReportActionID ) {
50
50
console . debug ( '[E2E] Target message found, starting verification' ) ;
51
51
verificationStarted = true ;
52
52
53
+ console . log ( 'TEST_onViewableItemsChanged.2' ) ;
53
54
setTimeout ( ( ) => {
54
55
console . debug ( '[E2E] Verification timeout completed' ) ;
55
56
console . debug ( '[E2E] Last visible message ID:' , lastVisibleMessageId ) ;
@@ -63,11 +64,12 @@ const test = (config: NativeConfig) => {
63
64
console . debug ( '[E2E] Linked message not found, failing test!' ) ;
64
65
E2EClient . submitTestResults ( {
65
66
branch : Config . E2E_BRANCH ,
66
- error : 'Linked message not found' ,
67
+ // error: 'Linked message not found',
68
+ error : `Linked message not found. Current visible message: ${ lastVisibleMessageId } , expected message: ${ linkedReportActionID } ` ,
67
69
name : `${ name } test can't find linked message` ,
68
70
} ) . then ( ( ) => E2EClient . submitTestDone ( ) ) ;
69
71
}
70
- } , 3000 ) ;
72
+ } , 7000 ) ;
71
73
}
72
74
} ) ;
73
75
0 commit comments