E2E: Explore Generic Solution When Waiting for Modals in UI
Problem
There have been a few flaky E2E tests recently that were caused by the tests attempting to make an assertion on a modal that was still in the process of rendering on the UI:
Currently, we have been either making custom methods specific to a page like has_change_subscription_modal_with_content?
, or making use of predicate checks in the tests themselves in order to wait for the modal to be present
Proposal
Explore a generic solution that can be shared across all UI tests that automatically waits for a modal to be fully rendered.
Edited by Valerie Burton