diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-08-05 06:16:25 +0300 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-08-05 06:16:25 +0300 |
commit | 228833588ad283e821fbbfcc5738faff0b7924bd (patch) | |
tree | e4b94a441ce2f9f4702ccbf3cfa65df75a52fdc6 /spec | |
parent | 2fd254c6b16f38758ec86fdccfa5c4da61f6ee2b (diff) |
Fix flaky spec due to image lazy-loading
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/snippets/user_edits_snippet_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/features/snippets/user_edits_snippet_spec.rb b/spec/features/snippets/user_edits_snippet_spec.rb index 92e34a1f510..5ff12c37aff 100644 --- a/spec/features/snippets/user_edits_snippet_spec.rb +++ b/spec/features/snippets/user_edits_snippet_spec.rb @@ -34,7 +34,7 @@ describe 'User edits snippet', :js do click_button('Save changes') wait_for_requests - link = find('a.no-attachment-icon img[alt="banana_sample"]')['src'] + link = find('a.no-attachment-icon img:not(.lazy)[alt="banana_sample"]')['src'] expect(link).to match(%r{/uploads/-/system/personal_snippet/#{snippet.id}/\h{32}/banana_sample\.gif\z}) end |