From e82a137cb891a9f60ccaed766d6792fa97c00b4a Mon Sep 17 00:00:00 2001 From: Jessica Jones Date: Tue, 29 Oct 2024 10:49:46 +0000 Subject: [PATCH] Remove browse popular tasks AB test We are turning off our AB test, and adding popular tasks to all mainstream browse pages. This commit adds the tasks as a hard coded list. Future work will allow the tasks to be fetched from SearchAPI --- app/controllers/browse_controller.rb | 2 - .../concerns/popular_tasks_ab_testable.rb | 43 --- app/helpers/browse_helper.rb | 20 +- app/views/browse/show.html.erb | 1 - config/locales/en/browse.yml | 330 +++++------------- .../step_definitions/viewing_browse_steps.rb | 32 +- spec/controllers/browse_controller_spec.rb | 11 - spec/features/mainstream_browsing_spec.rb | 133 ++----- spec/helpers/browse_helper_spec.rb | 30 +- 9 files changed, 148 insertions(+), 454 deletions(-) delete mode 100644 app/controllers/concerns/popular_tasks_ab_testable.rb diff --git a/app/controllers/browse_controller.rb b/app/controllers/browse_controller.rb index 4b83ed040..2f42d4c86 100644 --- a/app/controllers/browse_controller.rb +++ b/app/controllers/browse_controller.rb @@ -1,6 +1,4 @@ class BrowseController < ApplicationController - include PopularTasksAbTestable - slimmer_template "gem_layout_full_width" def index diff --git a/app/controllers/concerns/popular_tasks_ab_testable.rb b/app/controllers/concerns/popular_tasks_ab_testable.rb deleted file mode 100644 index 49c3f7b41..000000000 --- a/app/controllers/concerns/popular_tasks_ab_testable.rb +++ /dev/null @@ -1,43 +0,0 @@ -module PopularTasksAbTestable - extend ActiveSupport::Concern - - ALLOWED_VARIANTS = %w[A B C Z].freeze - - included do - helper_method( - :popular_tasks_variant, - :popular_tasks_page_under_test?, - :popular_tasks_variant_a_page?, - :popular_tasks_variant_b_page?, - ) - after_action :set_popular_tasks_ab_test_response_header - end - - def popular_tasks_ab_test - @popular_tasks_ab_test ||= GovukAbTesting::AbTest.new( - "PopularTasks", - allowed_variants: ALLOWED_VARIANTS, - control_variant: "Z", - ) - end - - def popular_tasks_variant - @popular_tasks_variant ||= popular_tasks_ab_test.requested_variant(request.headers) - end - - def popular_tasks_page_under_test? - request.path.match?(%r{\A/browse/[^/]+\z}) - end - - def set_popular_tasks_ab_test_response_header - popular_tasks_variant.configure_response(response) if popular_tasks_page_under_test? - end - - def popular_tasks_variant_a_page? - popular_tasks_page_under_test? && popular_tasks_variant.variant?("A") - end - - def popular_tasks_variant_b_page? - popular_tasks_page_under_test? && popular_tasks_variant.variant?("B") - end -end diff --git a/app/helpers/browse_helper.rb b/app/helpers/browse_helper.rb index ee4ca015c..a577ec9f7 100644 --- a/app/helpers/browse_helper.rb +++ b/app/helpers/browse_helper.rb @@ -3,25 +3,9 @@ def display_popular_links_for_slug?(slug) popular_links_data(slug).present? end - def control_key_is_present?(slug) - I18n.exists?("#{slug}.control", scope: "browse.popular_links") - end - - def control_data(slug) - if control_key_is_present?(slug) - I18n.t("browse.popular_links.#{slug}.control") - else - [] - end - end - def popular_links_data(slug) - if popular_tasks_variant_a_page? - I18n.t("browse.popular_links.#{slug}.variant_a") - elsif popular_tasks_variant_b_page? - I18n.t("browse.popular_links.#{slug}.variant_b") - else - control_data(slug) + if I18n.exists?("browse.popular_links.#{slug}", :en) + I18n.t("browse.popular_links.#{slug}") end end diff --git a/app/views/browse/show.html.erb b/app/views/browse/show.html.erb index 7ef978880..2d00fa7f4 100644 --- a/app/views/browse/show.html.erb +++ b/app/views/browse/show.html.erb @@ -12,7 +12,6 @@ section: page.title.downcase, } } %> - <%= popular_tasks_variant.analytics_meta_tag.html_safe if popular_tasks_page_under_test? %> <% end %> <% content_for :breadcrumbs do %> diff --git a/config/locales/en/browse.yml b/config/locales/en/browse.yml index 93d610157..72a56a40f 100644 --- a/config/locales/en/browse.yml +++ b/config/locales/en/browse.yml @@ -3,255 +3,117 @@ en: browse: popular_links: abroad: - variant_a: - - title: Renew or replace your adult passport - url: /renew-adult-passport - - title: How to apply for a visa to come to the UK - url: /apply-to-come-to-the-uk - - title: Update your UK Visas and Immigration account details - url: /update-uk-visas-immigration-account-details - variant_b: - - title: Apply online for a UK passport - url: /apply-renew-passport - - title: Foreign travel advice - url: /foreign-travel-advice - - title: Get a passport photo - url: /photos-for-passports + - title: Apply online for a UK passport + url: /apply-renew-passport + - title: Foreign travel advice + url: /foreign-travel-advice + - title: Get a passport photo + url: /photos-for-passports benefits: - control: - - title: Check benefits and financial support you can get - url: /check-benefits-financial-support - variant_a: - - title: Personal Independence Payment (PIP) - url: /pip - - title: Pension Credit - url: /pension-credit - - title: Pension Credit calculator - url: /pension-credit-calculator - variant_b: - - title: Sign in to your Universal Credit account - url: /sign-in-universal-credit - - title: Sign in to your childcare account - url: /sign-in-childcare-account - - title: Universal Credit - url: /universal-credit + - title: Sign in to your Universal Credit account + url: /sign-in-universal-credit + - title: Sign in to your childcare account + url: /sign-in-childcare-account + - title: Universal Credit + url: /universal-credit births-deaths-marriages: - variant_a: - - title: Order a birth, death, marriage or civil partnership certificate - url: /order-copy-birth-death-marriage-certificate - - title: Research your family history using the General Register Office - url: /research-family-history - - title: Search probate records for documents and wills (England and Wales) - url: /search-will-probate - variant_b: - - title: "Get Tax-Free Childcare: step by step" - url: /get-tax-free-childcare - - title: Tax-Free Childcare - url: /tax-free-childcare - - title: Help paying for childcare - url: /help-with-childcare-costs + - title: "Get Tax-Free Childcare: step by step" + url: /get-tax-free-childcare + - title: Tax-Free Childcare + url: /tax-free-childcare + - title: Help paying for childcare + url: /help-with-childcare-costs business: - control: - - title: "HMRC online services: sign in or set up an account" - url: /log-in-register-hmrc-online-services - - title: Self Assessment tax returns - url: /self-assessment-tax-returns - - title: "Pay employers' PAYE" - url: /pay-paye-tax - variant_a: - - title: Self Assessment tax returns - url: /self-assessment-tax-returns - - title: Get information about a company - url: /get-information-about-a-company - - title: Searching the Companies House register - url: /guidance/search-the-companies-house-register - variant_b: - - title: "HMRC online services: sign in or set up an account" - url: /log-in-register-hmrc-online-services - - title: Get information about a company - url: /get-information-about-a-company - - title: Find an energy certificate - url: /find-energy-certificate + - title: "HMRC online services: sign in or set up an account" + url: /log-in-register-hmrc-online-services + - title: Get information about a company + url: /get-information-about-a-company + - title: Find an energy certificate + url: /find-energy-certificate childcare-parenting: - variant_a: - - title: Sign in to your childcare account - url: /sign-in-childcare-account - - title: Child Benefit - url: /child-benefit - - title: Child Maintenance Service - url: /child-maintenance-service - variant_b: - - title: Sign in to your childcare account - url: /sign-in-childcare-account - - title: "Get Tax-Free Childcare: step by step" - url: /get-tax-free-childcare - - title: Tax-Free Childcare - url: /tax-free-childcare + - title: Sign in to your childcare account + url: /sign-in-childcare-account + - title: "Get Tax-Free Childcare: step by step" + url: /get-tax-free-childcare + - title: Tax-Free Childcare + url: /tax-free-childcare citizenship: - variant_a: - - title: "View and prove your immigration status: get a share code" - url: /view-prove-immigration-status - - title: Get access to your eVisa - url: /get-access-evisa - - title: Online immigration status (eVisa) - url: /guidance/online-immigration-status-evisa - variant_b: - - title: "View and prove your immigration status: get a share code" - url: /view-prove-immigration-status - - title: Prove your right to work to an employer - url: /prove-right-to-work - - title: Register to vote - url: /register-to-vote + - title: "View and prove your immigration status: get a share code" + url: /view-prove-immigration-status + - title: Prove your right to work to an employer + url: /prove-right-to-work + - title: Register to vote + url: /register-to-vote disabilities: - variant_a: - - title: Apply for or renew a Blue Badge - url: /apply-blue-badge - - title: Personal Independence Payment (PIP) - url: /pip - - title: Apply for a disabled person's bus pass - url: /apply-for-disabled-bus-pass - variant_b: - - title: Universal Credit - url: /universal-credit - - title: Benefits calculators - url: /benefits-calculators - - title: Apply for or renew a Blue Badge - url: /apply-blue-badge + - title: Universal Credit + url: /universal-credit + - title: Benefits calculators + url: /benefits-calculators + - title: Apply for or renew a Blue Badge + url: /apply-blue-badge driving: - variant_a: - - title: Apply for your first provisional driving licence - url: /apply-first-provisional-driving-licence - - title: Change the address on your driving licence - url: /change-address-driving-licence - - title: Replace a lost, stolen, damaged or destroyed driving licence - url: /apply-online-to-replace-a-driving-licence - variant_b: - - title: Check the MOT history of a vehicle - url: /check-mot-history - - title: Tax your vehicle - url: /vehicle-tax - - title: Check if a vehicle is taxed - url: /check-vehicle-tax + - title: Check the MOT history of a vehicle + url: /check-mot-history + - title: Tax your vehicle + url: /vehicle-tax + - title: Check if a vehicle is taxed + url: /check-vehicle-tax education: - variant_a: - - title: Free courses for jobs - url: /guidance/free-courses-for-jobs - - title: Student visa - url: /student-visa - - title: Find an apprenticeship - url: /apply-apprenticeship - variant_b: - - title: Student finance login - url: /student-finance-register-login - - title: Manage your student loan balance - url: /sign-in-to-manage-your-student-loan-balance - - title: Find an apprenticeship - url: /apply-apprenticeship + - title: Student finance login + url: /student-finance-register-login + - title: Manage your student loan balance + url: /sign-in-to-manage-your-student-loan-balance + - title: Find an apprenticeship + url: /apply-apprenticeship employing-people: - variant_a: - - title: Find a job - url: /find-a-job - - title: Find an apprenticeship - url: /apply-apprenticeship - - title: UK visa sponsorship for employers - url: /uk-visa-sponsorship-employers - variant_b: - - title: "HMRC online services: sign in or set up an account" - url: /log-in-register-hmrc-online-services - - title: "Check a job applicant's right to work: use their share code" - url: /view-right-to-work - - title: DBS Update Service - url: /dbs-update-service + - title: "HMRC online services: sign in or set up an account" + url: /log-in-register-hmrc-online-services + - title: "Check a job applicant's right to work: use their share code" + url: /view-right-to-work + - title: DBS Update Service + url: /dbs-update-service environment-countryside: - variant_a: - - title: "Poultry and other captive birds: registration rules and forms" - url: /government/publications/poultry-including-game-birds-registration-rules-and-forms - - title: Register as a keeper of less than 50 poultry or other captive birds - url: /guidance/register-as-a-keeper-of-less-than-50-poultry-or-other-captive-birds - - title: Poultry welfare off the farm - url: /guidance/poultry-welfare-off-the-farm - variant_b: - - title: Check the long term flood risk for an area in England - url: /check-long-term-flood-risk - - title: Find out your rubbish collection day - url: /rubbish-collection-day - - title: Check for flooding - url: /check-flooding + - title: Check the long term flood risk for an area in England + url: /check-long-term-flood-risk + - title: Find out your rubbish collection day + url: /rubbish-collection-day + - title: Check for flooding + url: /check-flooding housing-local-services: - variant_a: - - title: Tell HMRC when you change your address - url: /tell-hmrc-change-address - - title: "View and prove your immigration status: get a share code" - url: /view-prove-immigration-status - - title: Get help with the cost of living from your local council - url: /cost-living-help-local-council - variant_b: - - title: Find an energy certificate - url: /find-energy-certificate - - title: Find your local council - url: /find-local-council - - title: Check your Council Tax band - url: /council-tax-bands + - title: Find an energy certificate + url: /find-energy-certificate + - title: Find your local council + url: /find-local-council + - title: Check your Council Tax band + url: /council-tax-bands justice: - variant_a: - - title: Request a basic DBS check - url: /request-copy-criminal-record - - title: Pay a court fine - url: /pay-court-fine-online - - title: "DBS checks: detailed guidance" - url: /government/collections/dbs-checking-service-guidance--2 - variant_b: - - title: Send money to someone in prison - url: /send-prisoner-money - - title: Visit someone in prison - url: /prison-visits - - title: Make a court claim for money - url: /make-court-claim-for-money + - title: Send money to someone in prison + url: /send-prisoner-money + - title: Visit someone in prison + url: /prison-visits + - title: Make a court claim for money + url: /make-court-claim-for-money tax: - variant_a: - - title: Tax your vehicle - url: /vehicle-tax - - title: Check how to claim a tax refund - url: /claim-tax-refund - - title: Pay your Self Assessment tax bill - url: /pay-self-assessment-tax-bill - variant_b: - - title: "HMRC online services: sign in or set up an account" - url: /log-in-register-hmrc-online-services - - title: "Personal tax account: sign in or set up" - url: /personal-tax-account - - title: Check how to register for Self Assessment - url: /register-for-self-assessment + - title: "HMRC online services: sign in or set up an account" + url: /log-in-register-hmrc-online-services + - title: "Personal tax account: sign in or set up" + url: /personal-tax-account + - title: Check how to register for Self Assessment + url: /register-for-self-assessment visas-immigration: - variant_a: - - title: Get access to your eVisa - url: /get-access-evisa - - title: Online immigration status (eVisa) - url: /guidance/online-immigration-status-evisa - - title: "View and prove your immigration status: get a share code" - url: /view-prove-immigration-status - variant_b: - - title: "View and prove your immigration status: get a share code" - url: /view-prove-immigration-status - - title: Get access to your eVisa - url: /get-access-evisa - - title: Online immigration status (eVisa) - url: /guidance/online-immigration-status-evisa + - title: "View and prove your immigration status: get a share code" + url: /view-prove-immigration-status + - title: Get access to your eVisa + url: /get-access-evisa + - title: Online immigration status (eVisa) + url: /guidance/online-immigration-status-evisa working: - variant_a: - - title: Find an apprenticeship - url: /apply-apprenticeship - - title: Check your National Insurance record - url: /check-national-insurance-record - - title: Prove your right to work to an employer - url: /prove-right-to-work - variant_b: - - title: Universal Credit - url: /universal-credit - - title: Prove your right to work to an employer - url: /prove-right-to-work - - title: Check your State Pension forecast - url: /check-state-pension + - title: Universal Credit + url: /universal-credit + - title: Prove your right to work to an employer + url: /prove-right-to-work + - title: Check your State Pension forecast + url: /check-state-pension all_categories: All categories popular_tasks: Popular tasks topics: Topics diff --git a/features/step_definitions/viewing_browse_steps.rb b/features/step_definitions/viewing_browse_steps.rb index b9c6b8262..13d0dd110 100644 --- a/features/step_definitions/viewing_browse_steps.rb +++ b/features/step_definitions/viewing_browse_steps.rb @@ -2,7 +2,7 @@ second_level_browse_pages = [{ content_id: "judges-content-id", title: "Judges", - base_path: "/browse/crime-and-justice/judges", + base_path: "/browse/justice/judges", }] add_browse_pages @@ -26,12 +26,12 @@ { content_id: "judges-content-id", title: "Judges", - base_path: "/browse/crime-and-justice/judges", + base_path: "/browse/justice/judges", }, { content_id: "courts-content-id", title: "Courts", - base_path: "/browse/crime-and-justice/courts", + base_path: "/browse/justice/courts", }, ] @@ -53,7 +53,7 @@ Then(/^I see the list of top level browse pages$/) do expect(page).to have_link("Benefits", href: "/browse/benefits") - expect(page).to have_link("Crime and justice", href: "/browse/crime-and-justice") + expect(page).to have_link("Crime and justice", href: "/browse/justice") end When(/^I click on a top level browse page$/) do @@ -61,12 +61,12 @@ end Then(/^I see the list of second level browse pages$/) do - expect(page).to have_selector("a[href='/browse/crime-and-justice/judges']", text: "Judges") + expect(page).to have_selector("a[href='/browse/justice/judges']", text: "Judges") end Then(/^I see the curated list of second level browse pages$/) do - expect(page).to have_link("Judges", href: "/browse/crime-and-justice/judges") - expect(page).to have_link("Courts", href: "/browse/crime-and-justice/courts") + expect(page).to have_link("Judges", href: "/browse/justice/judges") + expect(page).to have_link("Courts", href: "/browse/justice/courts") end When(/^I click on a second level browse page$/) do @@ -86,15 +86,15 @@ end When(/^I visit that browse page$/) do - visit "/browse/crime-and-justice/judges" + visit "/browse/justice/judges" end def top_level_browse_pages [ { - content_id: "content-id-for-crime-and-justice", + content_id: "content-id-for-justice", title: "Crime and justice", - base_path: "/browse/crime-and-justice", + base_path: "/browse/justice", }, { content_id: "content-id-for-benefits", @@ -113,8 +113,8 @@ def add_browse_pages def add_first_level_browse_pages(child_pages:, order_type:) stub_content_store_has_item( - "/browse/crime-and-justice", - base_path: "/browse/crime-and-justice", + "/browse/justice", + base_path: "/browse/justice", title: "Crime and Justice", links: { top_level_browse_pages:, @@ -128,17 +128,17 @@ def add_first_level_browse_pages(child_pages:, order_type:) end def add_second_level_browse_pages(second_level_browse_pages) - stub_content_store_has_item "/browse/crime-and-justice/judges", + stub_content_store_has_item "/browse/justice/judges", content_id: "judges-content-id", title: "Judges", - base_path: "/browse/crime-and-justice/judges", + base_path: "/browse/justice/judges", links: { top_level_browse_pages:, second_level_browse_pages:, active_top_level_browse_page: [{ - content_id: "content-id-for-crime-and-justice", + content_id: "content-id-for-justice", title: "Crime and justice", - base_path: "/browse/crime-and-justice", + base_path: "/browse/justice", }], } end diff --git a/spec/controllers/browse_controller_spec.rb b/spec/controllers/browse_controller_spec.rb index f4e94a32d..fce86187c 100644 --- a/spec/controllers/browse_controller_spec.rb +++ b/spec/controllers/browse_controller_spec.rb @@ -42,17 +42,6 @@ expect(response.content_type).to eq "text/html; charset=utf-8" expect(response).to render_template(partial: "_cards") end - - it "sets Popular Tasks AB test response header" do - get :show, params: { top_level_slug: "benefits" } - expect(response.headers["vary"]).to eq("GOVUK-ABTest-PopularTasks") - end - - it "renders Popular Tasks AB test meta tag" do - get :show, params: { top_level_slug: "benefits" } - meta_tag = %r{} - expect(response.body).to match(meta_tag) - end end it "404 if the browse page does not exist" do diff --git a/spec/features/mainstream_browsing_spec.rb b/spec/features/mainstream_browsing_spec.rb index 0cc567f00..3cd71acc1 100644 --- a/spec/features/mainstream_browsing_spec.rb +++ b/spec/features/mainstream_browsing_spec.rb @@ -30,115 +30,32 @@ end end - context "when AB testing popular tasks" do - include GovukAbTesting::RspecHelpers - - content_item = GovukSchemas::Example.find("mainstream_browse_page", example_name: "top_level_page") - browse_slugs = I18n.t("browse.popular_links").keys - - before do - GovukAbTesting.configure do |config| - config.acceptance_test_framework = :capybara - end - end - - context "Control variants" do - scenario "when visiting business and benefits i.e. pages that originally had popular tasks" do - with_variant PopularTasks: "C" do - content_item["base_path"] = "/browse/business" - stub_content_store_has_item("/browse/business", content_item) - visit "/browse/business" - expect(page).to have_content("Popular tasks") - - links = I18n.t("browse.popular_links.business.control") - links.each do |link| - expect(page).to have_link(link["title"]) - end - - content_item["base_path"] = "/browse/benefits" - stub_content_store_has_item("/browse/benefits", content_item) - visit "/browse/benefits" - expect(page).to have_content("Popular tasks") - - links = I18n.t("browse.popular_links.benefits.control") - links.each do |link| - expect(page).to have_link(link["title"]) - end - end - - with_variant PopularTasks: "Z" do - content_item["base_path"] = "/browse/business" - stub_content_store_has_item("/browse/business", content_item) - visit "/browse/business" - expect(page).to have_content("Popular tasks") - - links = I18n.t("browse.popular_links.business.control") - links.each do |link| - expect(page).to have_link(link["title"]) - end - - content_item["base_path"] = "/browse/benefits" - stub_content_store_has_item("/browse/benefits", content_item) - visit "/browse/benefits" - expect(page).to have_content("Popular tasks") - - links = I18n.t("browse.popular_links.benefits.control") - links.each do |link| - expect(page).to have_link(link["title"]) - end - end - end - - scenario "when visiting pages that originally had no popular tasks" do - slugs_with_no_popular_tasks_originally = browse_slugs - %i[benefits business] - - slugs_with_no_popular_tasks_originally.each do |browse_slug| - browse_path = "/browse/#{browse_slug}" - content_item["base_path"] = browse_path - stub_content_store_has_item(browse_path, content_item) - - with_variant PopularTasks: "C" do - visit browse_path - expect(page).not_to have_content("Popular tasks") - end - - with_variant PopularTasks: "Z" do - visit browse_path - expect(page).not_to have_content("Popular tasks") - end - end - end - end - - browse_slugs.each do |browse_slug| - browse_path = "/browse/#{browse_slug}" - - context "when visiting #{browse_path}" do - before do - content_item["base_path"] = browse_path - stub_content_store_has_item(browse_path, content_item) - end - - scenario "variant A" do - with_variant PopularTasks: "A" do - visit browse_path - links = I18n.t("browse.popular_links.#{browse_slug}.variant_a") - links.each do |link| - expect(page).to have_link(link["title"]) - end - end - end - - scenario "variant B" do - with_variant PopularTasks: "B" do - visit browse_path - links = I18n.t("browse.popular_links.#{browse_slug}.variant_b") - links.each do |link| - expect(page).to have_link(link["title"]) - end - end - end + it "renders popular tasks on level 1 browse pages" do + level_one_browse_slugs = %w[ abroad + benefits + births-deaths-marriages + business + childcare-parenting + citizenship + disabilities + driving + education + employing-people + environment-countryside + housing-local-services + justice + tax + visas-immigration + working] + + level_one_browse_slugs.each do |slug| + content_item = GovukSchemas::Example.find("mainstream_browse_page", example_name: "top_level_page").tap do |item| + item["base_path"] = "/browse/#{slug}" end + stub_content_store_has_item(content_item["base_path"], content_item) + visit content_item["base_path"] + expect(page).to have_css(".browse__action-links") + expect(page).to have_content("Popular tasks") end end diff --git a/spec/helpers/browse_helper_spec.rb b/spec/helpers/browse_helper_spec.rb index 8e22b9716..06b301ca9 100644 --- a/spec/helpers/browse_helper_spec.rb +++ b/spec/helpers/browse_helper_spec.rb @@ -1,28 +1,16 @@ RSpec.describe BrowseHelper do - before do - class << helper - def popular_tasks_variant_a_page? - false - end - - def popular_tasks_variant_b_page? - false - end - end - end - describe "#display_popular_links_for_slug?" do - it "returns true for existing slug" do + it "returns true if data exists" do expect(helper.display_popular_links_for_slug?("business")).to be(true) end - it "returns false for nonexisting slug" do + it "returns false if no data exists" do expect(helper.display_popular_links_for_slug?("random12345")).to be(false) end end describe "#popular_links_for_slug" do - it "returns popular links data" do + it "adds GA tracking data to links" do expected_links = [ { text: "HMRC online services: sign in or set up an account", @@ -41,8 +29,8 @@ def popular_tasks_variant_b_page? }, }, { - text: "Self Assessment tax returns", - href: "/self-assessment-tax-returns", + text: "Get information about a company", + href: "/get-information-about-a-company", data_attributes: { module: "ga4-link-tracker", ga4_track_links_only: "", @@ -51,14 +39,14 @@ def popular_tasks_variant_b_page? type: "action", index_link: 2, index_total: 3, - text: "Self Assessment tax returns", + text: "Get information about a company", section: "Popular tasks", }, }, }, { - text: "Pay employers' PAYE", - href: "/pay-paye-tax", + text: "Find an energy certificate", + href: "/find-energy-certificate", data_attributes: { module: "ga4-link-tracker", ga4_track_links_only: "", @@ -67,7 +55,7 @@ def popular_tasks_variant_b_page? type: "action", index_link: 3, index_total: 3, - text: "Pay employers' PAYE", + text: "Find an energy certificate", section: "Popular tasks", }, },