diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-18 12:09:15 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-18 12:09:15 +0000 |
commit | 0637ba1e6e9024f35b2cbf561d9002ec17350bb3 (patch) | |
tree | 960cebf0e892710c1b40f25e249d04aaf8f9b868 /spec/features/snippets | |
parent | 4720b569f0fcbb47e9f1a60e95172ae63b6f065a (diff) | |
download | gitlab-ce-0637ba1e6e9024f35b2cbf561d9002ec17350bb3.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/snippets')
-rw-r--r-- | spec/features/snippets/user_creates_snippet_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/snippets/user_creates_snippet_spec.rb b/spec/features/snippets/user_creates_snippet_spec.rb index eb55613b954..7584789b99d 100644 --- a/spec/features/snippets/user_creates_snippet_spec.rb +++ b/spec/features/snippets/user_creates_snippet_spec.rb @@ -53,7 +53,7 @@ describe 'User creates snippet', :js do page.within('#new_personal_snippet .md-preview-holder') do expect(page).to have_content('My Snippet') - link = find('a.no-attachment-icon img[alt="banana_sample"]')['src'] + link = find('a.no-attachment-icon img.js-lazy-loaded[alt="banana_sample"]')['src'] expect(link).to match(%r{/uploads/-/system/user/#{user.id}/\h{32}/banana_sample\.gif\z}) # Adds a cache buster for checking if the image exists as Selenium is now handling the cached regquests @@ -73,7 +73,7 @@ describe 'User creates snippet', :js do click_button('Create snippet') wait_for_requests - link = find('a.no-attachment-icon img[alt="banana_sample"]')['src'] + link = find('a.no-attachment-icon img.js-lazy-loaded[alt="banana_sample"]')['src'] expect(link).to match(%r{/uploads/-/system/personal_snippet/#{Snippet.last.id}/\h{32}/banana_sample\.gif\z}) reqs = inspect_requests { visit("#{link}?ran=#{SecureRandom.base64(20)}") } @@ -98,7 +98,7 @@ describe 'User creates snippet', :js do expect(page).to have_selector('strong') end expect(page).to have_content('Hello World!') - link = find('a.no-attachment-icon img[alt="banana_sample"]')['src'] + link = find('a.no-attachment-icon img.js-lazy-loaded[alt="banana_sample"]')['src'] expect(link).to match(%r{/uploads/-/system/personal_snippet/#{Snippet.last.id}/\h{32}/banana_sample\.gif\z}) reqs = inspect_requests { visit("#{link}?ran=#{SecureRandom.base64(20)}") } |