Add waiting for requests in discussion_comments_shared_example.rb and variable_list_shared_examples.rb
What does this MR do?
I'm not entirely sure this would solve the flakiness but based on the screenshots and error in the related issues, waiting for requests might be the solution here.
Relates to #328425 (closed) and #330690 (closed).
Edited by Rémy Coutable