Skip to content

Commit

Permalink
fix system test
Browse files Browse the repository at this point in the history
  • Loading branch information
ElviaBth committed Feb 12, 2024
1 parent b007d0a commit 3d1d6fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
<% end %>
</ul>
</div>
<% console %>
<div class="tabs-content" data-tabs-content="organization_social_handlers">
<% social_handlers&.each do |handler, default| %>
<div class="tabs-panel <% if handler == social_handlers.keys.first %> is-active <% end %>" id="<%= handler %>">
Expand Down
6 changes: 3 additions & 3 deletions spec/system/agenda_events_settings_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
expect(page).to have_content("Footer event title")

expect(page).to have_content("Organization address")
expect(page).to have_content("C/Concepció Arenal 165")
expect(page).to have_content("C/Concepción Arenal 165")
expect(page).to have_content("Social links title")
end
end
Expand Down Expand Up @@ -153,7 +153,7 @@
end
expect(page).to have_css("a[href='http://www.example.org/footer']", count: 3)

expect(page).to have_css("img[src*='avatar.jpg']", count: 2)
expect(page).to have_css("img[src*='avatar.jpg']", count: 1)
expect(page).to have_css("img[src*='city.jpeg']", count: 1)
expect(page).to have_css("img[src*='city2.jpeg']", count: 4)
expect(page).to have_css("img[src*='city3.jpeg']", count: 3)
Expand All @@ -164,7 +164,7 @@
expect(page).to have_css(".footer-social__icon[title='Twitter']")
expect(page).to have_css(".footer-social__icon[title='Mastodon']")
expect(page).not_to have_css(".footer-social__icon[title='Facebook']")
expect(page).not_to have_css(".footer-social__icon[title='Telegram']")
expect(page).to have_css(".footer-social__icon[title='Telegram']")

# no links or images without host
expect(page.body).not_to include("src=\"/")
Expand Down

0 comments on commit 3d1d6fe

Please sign in to comment.