E2E Tests: Instability in "embedding content" tests #19033
Labels
[Status] In Progress
Tracking issues with work in progress
[Type] Automated Testing
Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
[Type] Bug
An existing feature does not function as intended
A frequent build failure occurs due to a failing test in the "Embedding content" test suite:
Initial assessment:
Based on the error and relevant for some previous issues which have been encountered, it can sometimes be problematic to try to click an element which is "off-screen". The viewport for the E2E tests is quite small, so there's a high likelihood that inserting embeds could push the block appender down the page. That being said,
page.click
is documented as intending to bring the element on-screen, so it's not entirely clear that this should be necessary:https://github.com/puppeteer/puppeteer/blob/v2.0.0/docs/api.md#pageclickselector-options
If there could be another way to remove or otherwise express this desire to add a new default block which does not depend as much on cursor or element positioning, it may be worth exploring as an alternative implementation of the shared
clickBlockAppender
utility function.The text was updated successfully, but these errors were encountered: