lib/tasks/lighthouse_report.rake in decidim-dev-0.27.6 vs lib/tasks/lighthouse_report.rake in decidim-dev-0.27.7
- old
+ new
@@ -14,11 +14,11 @@
# to add dynamically the urls to check.
host = "http://localhost:3000"
urls = ["/"]
urls << ::Decidim::ResourceLocatorPresenter.new(Decidim::ParticipatoryProcess.published.first).path
- urls << ::Decidim::ResourceLocatorPresenter.new(Decidim::Meetings::Meeting.published.first).path
- urls << ::Decidim::ResourceLocatorPresenter.new(Decidim::Proposals::Proposal.published.first).path
+ urls << ::Decidim::ResourceLocatorPresenter.new(Decidim::Meetings::Meeting.published.not_hidden.first).path
+ urls << ::Decidim::ResourceLocatorPresenter.new(Decidim::Proposals::Proposal.published.not_hidden.first).path
# Update lighthouse configuration with the urls
lighthouse_rc_path = Rails.root.join("../.lighthouserc.json")
lighthouserc = JSON.parse(File.read(lighthouse_rc_path))
lighthouserc["ci"]["collect"]["url"] = urls.map { |url| "#{host}#{url}" }