Skip to content

Add wait_for_all_requests after visit page

What does this MR do and why?

Describe in detail what your merge request does and why.

Related #385304 (closed)

This could be the first iteration. We could continue with adding eait_for_all_requests after clicking of a button or a link.

Why

We want to improve flaky issues, mainly the ones with flaky-testunreliable dom selector. Tests that sometimes give a timeout. We noticed that we are fixing flaky tests by adding wait_for_all_requests #384518 (closed) #385660 (closed)

In this MR we:

  • Add wait_for_all_requests after page visit.
  • This surfaced flaky tests, false positives and those tests are now quarantined.

From Capybara documentation https://github.com/teamcapybara/capybara#asynchronous-javascript-ajax-and-friends

Methods are called right after the visit returns.

Capybara waits upon failed predicates/assertions.

It our cases there are elements that we were checking in pages that were not loading yet. After adding wait_for_all_requests elements are loading and checks are failing.

Quarantined

After we merge this MR the following issues should be labeled as quarantined

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Alina Mihaila

Merge request reports