[E2E] Add an assertion that rich text promo is gone after close
What does this MR do and why?
Follow up to !126924 (comment 1476351040)
The current method closes the Rich Text Popover with a click but doesn't verify that it's actually gone afterwards.
Depending on the flow of the tests, if someone were to call this method a second time in quick succession a flake could happen where
-
close_rich_text_promo_popover_if_present
called - the click happens
-
close_rich_text_promo_popover_if_present
called - the closes milliseconds after the first click
- an error because the element is gone so the second click cannot find the element
This change will prevent that by blocking until the element is gone after a click.
See #418873 (comment 1473698441)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by John McDonnell