Skip to content

Commit

Permalink
Merge pull request #3887 from alphagov/change-popular-tasks-heading-t…
Browse files Browse the repository at this point in the history
…o-most-viewed

Change 'Popular tasks' heading to 'Most viewed'
  • Loading branch information
hannako authored Dec 5, 2024
2 parents 2df00d2 + 1e59b60 commit bd1be0c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion app/helpers/browse_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def with_tracking_data(popular_content)
index_link: index,
index_total: count,
text: link[:title],
section: "Popular tasks",
section: "Most viewed",
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion config/locales/en/browse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ en:
- title: Check your State Pension forecast
url: /check-state-pension
all_categories: All categories
popular_tasks: Popular tasks
popular_tasks: Most viewed
topics: Topics
description: Find the government services, forms and accounts you need to use
title: Services and information
6 changes: 3 additions & 3 deletions spec/features/mainstream_browsing_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

visit content_item["base_path"]
expect(page).to have_css(".browse__action-links")
expect(page).to have_content("Popular tasks")
expect(page).to have_content("Most viewed")
end
end

Expand All @@ -54,7 +54,7 @@

visit content_item["base_path"]
expect(page).not_to have_css(".browse__action-links")
expect(page).not_to have_content("Popular tasks")
expect(page).not_to have_content("Most viewed")
end

it "does not render on level two browse pages" do
Expand All @@ -64,7 +64,7 @@

visit content_item["base_path"]
expect(page).not_to have_css(".browse__action-links")
expect(page).not_to have_content("Popular tasks")
expect(page).not_to have_content("Most viewed")
end

it "renders the GOV.UK Chat promo" do
Expand Down
6 changes: 3 additions & 3 deletions spec/helpers/browse_helper_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
index_link: 1,
index_total: 3,
text: "Policy on World Locations",
section: "Popular tasks",
section: "Most viewed",
},
},
},
Expand All @@ -45,7 +45,7 @@
index_link: 2,
index_total: 3,
text: "PM attends summit on world location news pages",
section: "Popular tasks",
section: "Most viewed",
},
},
},
Expand All @@ -61,7 +61,7 @@
index_link: 3,
index_total: 3,
text: "Anything",
section: "Popular tasks",
section: "Most viewed",
},
},
},
Expand Down

0 comments on commit bd1be0c

Please sign in to comment.