@@ -486,18 +486,22 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test
486486 await BrowserRecipe . setUpCommonAcct ( t , browser , 'ci.tests.gmail' ) ;
487487 const gmailPage = await openGmailPage ( t , browser ) ;
488488 await gotoGmailPage ( gmailPage , '/FMfcgzGtwgfMhWTlgRwwKWzRhqNZzwXz' ) ; // go to encrypted convo
489- const actionsMenuSelector = '.J-J5-Ji.aap' ;
490- await gmailPage . waitAndClick ( actionsMenuSelector ) ;
489+ const gmailContextMenu = '.J-J5-Ji.aap' ;
490+ await gmailPage . waitAndClick ( gmailContextMenu ) ;
491+ await Util . sleep ( 1 ) ;
491492 expect ( await gmailPage . isElementPresent ( '@action-reply-message-button' ) ) ;
492- expect ( await gmailPage . isElementPresent ( '@action-reply-all-message-button' ) ) ;
493- expect ( await gmailPage . isElementPresent ( '@action-forward-message-button' ) ) ;
494493 await gmailPage . waitAndClick ( '@action-reply-message-button' ) ;
495494 const replyBox = await gmailPage . getFrame ( [ '/chrome/elements/compose.htm' ] , { sleep : 5 } ) ;
496495 await replyBox . waitForContent ( '@input-body' , '' ) ;
497- await gmailPage . waitAndClick ( actionsMenuSelector ) ;
496+ await gmailPage . waitAndClick ( gmailContextMenu ) ;
497+ await Util . sleep ( 1 ) ;
498+ expect ( await gmailPage . isElementPresent ( '@action-reply-all-message-button' ) ) ;
498499 await gmailPage . waitAndClick ( '@action-reply-all-message-button' ) ;
499500 const replyBox2 = await gmailPage . getFrame ( [ '/chrome/elements/compose.htm' ] , { sleep : 5 } ) ;
500501 await replyBox2 . waitForContent ( '@input-body' , '' ) ;
502+ await gmailPage . waitAndClick ( gmailContextMenu ) ;
503+ await Util . sleep ( 1 ) ;
504+ expect ( await gmailPage . isElementPresent ( '@action-forward-message-button' ) ) ;
501505 await gmailPage . waitAndClick ( '@action-forward-message-button' ) ;
502506 const replyBox3 = await gmailPage . getFrame ( [ '/chrome/elements/compose.htm' ] , { sleep : 5 } ) ;
503507 await replyBox3 . waitForContent ( '@input-body' , '---------- Forwarded message ---------' ) ;
0 commit comments