Commit 6f181d1f authored by Rémy Coutable's avatar Rémy Coutable

Fix a flaky test by waiting for all requests before clicking

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent a0afbe1d
......@@ -278,8 +278,9 @@ RSpec.describe 'Merge request > User creates image diff notes', :js do
end
def create_image_diff_note
expand_text = 'Click to expand it.'
page.all('a', text: expand_text, wait: false).each do |element|
wait_for_all_requests
page.all('a', text: 'Click to expand it.', wait: false).each do |element|
element.click
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment