Skip to content

Commit

Permalink
Fix plan_view_cell_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasAapro committed Jul 26, 2024
1 parent 4c3f959 commit 6b410db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/cells/decidim/plans/plan_view_cell_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ def expect_attachments(_section, content, node)
content.body["attachment_ids"].each do |attachment_id|
attachment = Decidim::Attachment.find(attachment_id)
if attachment.photo?
expect(node).to have_css("img[alt='#{translated(attachment.title)}']")
expect(node).to have_css("img[alt='#{strip_tags translated(attachment.title)}']")
else
expect(node).to have_content(translated(attachment.title))
end
Expand Down

0 comments on commit 6b410db

Please sign in to comment.