Commit 59ae7774 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Merge branch '331199-fix-flaky-spec' into 'master'

Fix a flaky test by waiting for all requests before clicking

See merge request gitlab-org/gitlab!62099
parents e220af44 6f181d1f
......@@ -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