Fix flaky spec due to image lazy-loading
This commit is contained in:
parent
2fd254c6b1
commit
228833588a
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue