@@ -180,7 +180,7 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test
180180 await gotoGmailPage ( gmailPage , '/KtbxLvHkSWwbVHxgCbWNvXVKGjFgqMbGQq' ) ;
181181 await Util . sleep ( 5 ) ;
182182 await gmailPage . waitAll ( 'iframe' ) ;
183- await gmailPage . waitAll ( [ '.aZi ' ] , { visible : true } ) ;
183+ await gmailPage . waitAll ( [ '.pYTkkf-JX-ano ' ] , { visible : true } ) ;
184184
185185 // attachments which contain emoji in filename are rendered correctly
186186 await gotoGmailPage ( gmailPage , '/FMfcgzGtwqFGhMwWtLRjkPJlQlZHSlrW' ) ;
@@ -190,7 +190,7 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test
190190 const urls2 = await gmailPage . getFramesUrls ( [ '/chrome/elements/attachment.htm' ] ) ;
191191 expect ( urls2 . length ) . to . equal ( 2 ) ;
192192 expect ( await gmailPage . waitForContent ( '.aVW span:first-child' , '2' ) ) ;
193- expect ( await gmailPage . waitForContent ( '.aVW span.a2H' , ' • Scanned by Gmail' ) ) ;
193+ expect ( await gmailPage . waitForContent ( '.aVW span.a2H' , ' • Scanned by Gmail' ) ) ;
194194 await gmailPage . close ( ) ;
195195 } )
196196 ) ;
@@ -405,10 +405,10 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test
405405 testWithBrowser ( async ( t , browser ) => {
406406 await BrowserRecipe . setUpCommonAcct ( t , browser , 'ci.tests.gmail' ) ;
407407 let gmailPage = await openGmailPage ( t , browser , '/FMfcgzGkbDRNgcQxLmkhBCKVSFwkfdvV' ) ; // plain convo
408- await gmailPage . waitAndClick ( '[data-tooltip ="Reply"]' , { delay : 1 } ) ;
408+ await gmailPage . waitAndClick ( 'div.adn [aria-label ="Reply"]' , { delay : 1 } ) ;
409409 await gmailPage . close ( ) ;
410410 gmailPage = await openGmailPage ( t , browser , '/181d226b4e69f172' ) ; // go to encrypted convo
411- await gmailPage . waitAndClick ( '[data-tooltip ="Reply"]' , { delay : 1 } ) ;
411+ await gmailPage . waitAndClick ( 'div.adn [aria-label ="Reply"]' , { delay : 1 } ) ;
412412 await gmailPage . waitTillGone ( '.reply_message' ) ;
413413 await gmailPage . waitAll ( '[data-tooltip^="Send"]' ) ; // The Send button from the Standard reply box
414414 await gmailPage . waitForContent (
@@ -419,7 +419,7 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test
419419 await gmailPage . waitAll ( '.reply_message' ) ;
420420 await pageHasSecureReplyContainer ( t , browser , gmailPage , { isReplyPromptAccepted : true } ) ;
421421 await gotoGmailPage ( gmailPage , '/FMfcgzGkbDRNpjDdNvCrwzqvXspZZxvh' ) ; // go to signed convo
422- await gmailPage . waitAndClick ( '[data-tooltip ="Reply"]' , { delay : 1 } ) ;
422+ await gmailPage . waitAndClick ( 'div.adn [aria-label ="Reply"]' , { delay : 1 } ) ;
423423 await gmailPage . waitTillGone ( '.reply_message' ) ;
424424 await gmailPage . waitAll ( '[data-tooltip^="Send"]' ) ; // The Send button from the Standard reply box
425425 await gmailPage . notPresent ( '.reply_message_evaluated .error_notification' ) ; // should not show the warning about switching to encrypted reply
@@ -438,7 +438,7 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test
438438 await gmailPage . waitAndClick ( '[role="listitem"] .adf.ads' , { delay : 1 } ) ; // click first message of thread
439439 await Util . sleep ( 3 ) ;
440440 const messages = await gmailPage . target . $$ ( '[role="listitem"] .adn.ads' ) ;
441- const plainReplyButton = await messages [ 0 ] . $ ( '[data-tooltip ="Reply"]' ) ;
441+ const plainReplyButton = await messages [ 0 ] . $ ( '[aria-label ="Reply"]' ) ;
442442 await Util . sleep ( 1 ) ;
443443 await plainReplyButton ! . click ( ) ;
444444 await gmailPage . waitAndClick ( '#switch_to_encrypted_reply' ) ; // Switch to encrypted compose
@@ -467,7 +467,7 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test
467467 const messages = await gmailPage . target . $$ ( '[role="listitem"] .adn.ads' ) ;
468468 expect ( messages . length ) . to . equal ( 2 ) ;
469469
470- const plainReplyButton = await messages [ 0 ] . $ ( '[data-tooltip ="Reply"]' ) ;
470+ const plainReplyButton = await messages [ 0 ] . $ ( '[aria-label ="Reply"]' ) ;
471471 expect ( plainReplyButton ) . to . be . ok ;
472472 await Util . sleep ( 1 ) ;
473473 await plainReplyButton ! . click ( ) ;
@@ -491,11 +491,11 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test
491491 await BrowserRecipe . setUpCommonAcct ( t , browser , 'ci.tests.gmail' ) ;
492492 const gmailPage = await openGmailPage ( t , browser ) ;
493493 await gotoGmailPage ( gmailPage , '/FMfcgzGkbDRNgcQxLmkhBCKVSFwkfdvV' ) ; // plain convo
494- await gmailPage . waitAndClick ( '[data-tooltip ="Reply"]' , { delay : 1 } ) ;
494+ await gmailPage . waitAndClick ( 'div.adn [aria-label ="Reply"]' , { delay : 1 } ) ;
495495 await gotoGmailPage ( gmailPage , '/FMfcgzGtwgfMhWTlgRwwKWzRhqNZzwXz' ) ; // go to encrypted convo
496496 await Util . sleep ( 5 ) ;
497- await gmailPage . waitAndClick ( '.adn [data-tooltip ="More"]' , { delay : 1 } ) ;
498- await gmailPage . waitAndClick ( '[act ="24"]' , { delay : 1 } ) ; // click reply-all
497+ await gmailPage . waitAndClick ( '.adn [aria-label ="More message options "]' , { delay : 1 } ) ;
498+ await gmailPage . waitAndClick ( 'li[data-action-type ="24"]' , { delay : 1 } ) ; // click reply-all
499499 await Util . sleep ( 3 ) ;
500500 await gmailPage . waitAll ( '[data-tooltip^="Send"]' ) ; // The Send button from the Standard reply box
501501 await gmailPage . waitForContent (
@@ -518,7 +518,7 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test
518518 await BrowserRecipe . setUpCommonAcct ( t , browser , 'ci.tests.gmail' ) ;
519519 const gmailPage = await openGmailPage ( t , browser ) ;
520520 await gotoGmailPage ( gmailPage , '/FMfcgzQZTMHNLflWQjRcSvWlMsKbLhpr' ) ;
521- await gmailPage . waitAndClick ( '.adn [data-tooltip ="More"]' , { delay : 1 } ) ;
521+ await gmailPage . waitAndClick ( '.adn [aria-label ="More message options "]' , { delay : 1 } ) ;
522522 await gmailPage . waitAll ( '.action_reply_all_message_button' ) ;
523523 } )
524524 ) ;
@@ -531,8 +531,8 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test
531531 const gmailPage = await openGmailPage ( t , browser ) ;
532532 await gotoGmailPage ( gmailPage , '/FMfcgzGtwgfMhWTlgRwwKWzRhqNZzwXz' ) ; // go to encrypted convo
533533 await Util . sleep ( 5 ) ;
534- await gmailPage . waitAndClick ( '.adn [data-tooltip ="More"]' , { delay : 1 } ) ;
535- await gmailPage . waitAndClick ( '[act ="25"]' , { delay : 1 } ) ; // click forward
534+ await gmailPage . waitAndClick ( '.adn [aria-label ="More message options "]' , { delay : 1 } ) ;
535+ await gmailPage . waitAndClick ( 'li[data-action-type ="25"]' , { delay : 1 } ) ; // click forward
536536 await Util . sleep ( 3 ) ;
537537 await gmailPage . waitAll ( '[data-tooltip^="Send"]' ) ; // The Send button from the Standard reply box
538538 await gmailPage . waitForContent (
@@ -556,7 +556,7 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test
556556 await BrowserRecipe . setUpCommonAcct ( t , browser , 'ci.tests.gmail' ) ;
557557 const gmailPage = await openGmailPage ( t , browser ) ;
558558 await gotoGmailPage ( gmailPage , '/FMfcgzGtwgfMhWTlgRwwKWzRhqNZzwXz' ) ; // go to encrypted convo
559- const gmailContextMenu = '.J-J5-Ji.aap ' ;
559+ const gmailContextMenu = '.adn [aria-label="More message options"] ' ;
560560 await gmailPage . waitAndClick ( gmailContextMenu ) ;
561561 await Util . sleep ( 1 ) ;
562562 expect ( await gmailPage . isElementPresent ( '@action-reply-message-button' ) ) ;
@@ -589,7 +589,7 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test
589589 const threadId = '181d226b4e69f172' ; // 1st message -- thread id
590590 const gmailPage = await openGmailPage ( t , browser , `/${ threadId } ` ) ;
591591 await GmailPageRecipe . trimConvo ( gmailPage , threadId ) ;
592- await gmailPage . waitAndClick ( '[data-tooltip ="Reply"]' , { delay : 5 } ) ;
592+ await gmailPage . waitAndClick ( 'div.adn [aria-label ="Reply"]' , { delay : 5 } ) ;
593593 t . timeout ( minutes ( 2 ) ) ; // extend ava's timeout
594594 await Util . sleep ( 5 ) ;
595595 await gmailPage . waitTillFocusIsIn ( 'div[aria-label="Message Body"]' , { timeout : 10 } ) ;
@@ -621,7 +621,7 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test
621621 await Util . sleep ( 5 ) ;
622622 await gmailPage . waitAll ( 'iframe' ) ;
623623 expect ( await gmailPage . isElementPresent ( '@container-attachments' ) ) . to . equal ( false ) ;
624- await gmailPage . waitAll ( [ '.aZi ' ] , { visible : false } ) ;
624+ await gmailPage . waitAll ( [ '.pYTkkf-JX-ano ' ] , { visible : false } ) ;
625625 expect ( await gmailPage . isElementVisible ( '.aQH' ) ) . to . equal ( false ) ; // original attachment container(s) should be hidden
626626 await gmailPage . close ( ) ;
627627 } )
@@ -642,7 +642,7 @@ export const defineGmailTests = (testVariant: TestVariant, testWithBrowser: Test
642642 await Util . sleep ( 5 ) ;
643643 await gmailPage . waitAll ( 'iframe' ) ;
644644 expect ( await gmailPage . isElementPresent ( '@container-attachments' ) ) . to . equal ( false ) ;
645- await gmailPage . waitAll ( [ '.aZi ' ] , { visible : false } ) ;
645+ await gmailPage . waitAll ( [ '.pYTkkf-JX-ano ' ] , { visible : false } ) ;
646646 await gmailPage . close ( ) ;
647647 } )
648648 ) ;
0 commit comments