Fix a flaky test by waiting for all requests before clicking
What does this MR do?
This waits for all requests to be done before clicking any link. This will hopefully reduce the flakiness of the test.
Related to #331199 (closed)
Edited by Rémy Coutable