Commit 8debde4b authored by Heinrich Lee Yu's avatar Heinrich Lee Yu
Browse files

Fix flaky spec due to image lazy-loading

parent b9a8fa4a7b4b
......@@ -34,7 +34,7 @@
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
......
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