Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
fblupi committed Aug 12, 2024
1 parent 7a6f684 commit 4b122d7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/system/conferences_with_image_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

describe "Conference with images", type: :system do
let(:organization) { create :organization }
let(:short_description) { { en: "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>" } }
let(:short_description) { { en: "<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p><img src=\"/favicon.ico\">" } }
let!(:conference) { create :conference, organization: organization, short_description: short_description }

before do
Expand All @@ -13,6 +13,8 @@
end

it "shows the image" do
expect(page).to have_selector("img")
within "#content" do
expect(page).to have_xpath("//img[contains(@src,'favicon.ico')]")
end
end
end

0 comments on commit 4b122d7

Please sign in to comment.