From 025fc4ffe2340de6086e224cc476017304acdce5 Mon Sep 17 00:00:00 2001 From: Alexandru Emil Lupu Date: Mon, 31 Jul 2023 09:46:47 +0300 Subject: [PATCH] Fix Failing specs (#11419) --- .../content_blocks/participatory_space_hero/show.erb | 2 +- .../spec/cells/decidim/user_activity_cell_spec.rb | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/decidim-core/app/cells/decidim/content_blocks/participatory_space_hero/show.erb b/decidim-core/app/cells/decidim/content_blocks/participatory_space_hero/show.erb index e6b7e5a3be2b..d5df02555fde 100644 --- a/decidim-core/app/cells/decidim/content_blocks/participatory_space_hero/show.erb +++ b/decidim-core/app/cells/decidim/content_blocks/participatory_space_hero/show.erb @@ -1,4 +1,4 @@ -
> +
data-process-hero>

diff --git a/decidim-core/spec/cells/decidim/user_activity_cell_spec.rb b/decidim-core/spec/cells/decidim/user_activity_cell_spec.rb index 99029426a557..4a65448ebedc 100644 --- a/decidim-core/spec/cells/decidim/user_activity_cell_spec.rb +++ b/decidim-core/spec/cells/decidim/user_activity_cell_spec.rb @@ -76,7 +76,7 @@ it "displays the latest items on the first page and a pagination" do logs.last(10).each do |log| root_link = Decidim::ResourceLocatorPresenter.new(log.resource.root_commentable).path - comment_link = "#{root_link}?commentId=#{log.resource.id}" + comment_link = "#{root_link}?commentId=#{log.resource.id}#comment_#{log.resource.id}" title = html_truncate(translated_attribute(log.resource.root_commentable.title), length: 80) expect(subject).to have_link(title, href: comment_link) @@ -95,7 +95,7 @@ it "displays the oldest items and a pagination" do logs.first(5).each do |log| root_link = Decidim::ResourceLocatorPresenter.new(log.resource.root_commentable).path - comment_link = "#{root_link}?commentId=#{log.resource.id}" + comment_link = "#{root_link}?commentId=#{log.resource.id}#comment_#{log.resource.id}" title = html_truncate(translated_attribute(log.resource.root_commentable.title), length: 80) expect(subject).to have_link(title, href: comment_link) @@ -124,14 +124,14 @@ # The first five items should be hidden through moderation logs.first(5).each do |log| root_link = Decidim::ResourceLocatorPresenter.new(log.resource.root_commentable).path - comment_link = "#{root_link}?commentId=#{log.resource.id}" + comment_link = "#{root_link}?commentId=#{log.resource.id}#comment_#{log.resource.id}" title = html_truncate(translated_attribute(log.resource.root_commentable.title), length: 80) expect(subject).not_to have_link(title, href: comment_link) end logs.last(10).each do |log| root_link = Decidim::ResourceLocatorPresenter.new(log.resource.root_commentable).path - comment_link = "#{root_link}?commentId=#{log.resource.id}" + comment_link = "#{root_link}?commentId=#{log.resource.id}#comment_#{log.resource.id}" title = html_truncate(translated_attribute(log.resource.root_commentable.title), length: 80) expect(subject).to have_link(title, href: comment_link)