From b41d4eba50d2d8d2103adfa2740296224bd80707 Mon Sep 17 00:00:00 2001 From: Ana Botto Date: Wed, 24 Jan 2024 16:20:51 +0000 Subject: [PATCH] CA/ACB - Remove Find UTR Number A/B test for 31st January --- app/controllers/content_items_controller.rb | 25 ----------- config/locales/ar.yml | 4 -- config/locales/az.yml | 4 -- config/locales/be.yml | 4 -- config/locales/bg.yml | 4 -- config/locales/bn.yml | 4 -- config/locales/cs.yml | 4 -- config/locales/cy.yml | 4 -- config/locales/da.yml | 4 -- config/locales/de.yml | 4 -- config/locales/dr.yml | 4 -- config/locales/el.yml | 4 -- config/locales/en.yml | 4 -- config/locales/es-419.yml | 4 -- config/locales/es.yml | 4 -- config/locales/et.yml | 4 -- config/locales/fa.yml | 4 -- config/locales/fi.yml | 4 -- config/locales/fr.yml | 4 -- config/locales/gd.yml | 4 -- config/locales/gu.yml | 4 -- config/locales/he.yml | 4 -- config/locales/hi.yml | 4 -- config/locales/hr.yml | 4 -- config/locales/hu.yml | 4 -- config/locales/hy.yml | 4 -- config/locales/id.yml | 4 -- config/locales/is.yml | 4 -- config/locales/it.yml | 4 -- config/locales/ja.yml | 4 -- config/locales/ka.yml | 4 -- config/locales/kk.yml | 4 -- config/locales/ko.yml | 4 -- config/locales/lt.yml | 4 -- config/locales/lv.yml | 4 -- config/locales/ms.yml | 4 -- config/locales/mt.yml | 4 -- config/locales/ne.yml | 4 -- config/locales/nl.yml | 4 -- config/locales/no.yml | 4 -- config/locales/pa-pk.yml | 4 -- config/locales/pa.yml | 4 -- config/locales/pl.yml | 4 -- config/locales/ps.yml | 4 -- config/locales/pt.yml | 4 -- config/locales/ro.yml | 4 -- config/locales/ru.yml | 4 -- config/locales/si.yml | 4 -- config/locales/sk.yml | 4 -- config/locales/sl.yml | 4 -- config/locales/so.yml | 4 -- config/locales/sq.yml | 4 -- config/locales/sr.yml | 4 -- config/locales/sv.yml | 4 -- config/locales/sw.yml | 4 -- config/locales/ta.yml | 4 -- config/locales/th.yml | 4 -- config/locales/tk.yml | 4 -- config/locales/tr.yml | 4 -- config/locales/uk.yml | 4 -- config/locales/ur.yml | 4 -- config/locales/uz.yml | 4 -- config/locales/vi.yml | 4 -- config/locales/yi.yml | 4 -- config/locales/zh-hk.yml | 4 -- config/locales/zh-tw.yml | 4 -- config/locales/zh.yml | 4 -- .../content_items_controller_test.rb | 45 ------------------- 68 files changed, 334 deletions(-) diff --git a/app/controllers/content_items_controller.rb b/app/controllers/content_items_controller.rb index 472ad561f..ffbd34d89 100644 --- a/app/controllers/content_items_controller.rb +++ b/app/controllers/content_items_controller.rb @@ -25,7 +25,6 @@ class ContentItemsController < ApplicationController def show load_content_item - temporary_ab_test_find_utr_page temporary_ab_test_stop_self_employed_2 temporary_ab_test_sa_video_return_2 set_expiry @@ -272,30 +271,6 @@ def csp_connect_src end # TEMPORARY (author: richard.towers, expected end date: February 2024) - # Content specific AB test for the Find your UTR number page - def temporary_ab_test_find_utr_page - placeholder = "{{ab_test_find_utr_number_video_links}}" - if @content_item.base_path == "/find-utr-number" && @content_item.body.include?(placeholder) - ab_test = GovukAbTesting::AbTest.new( - "FindUtrNumberVideoLinks", - dimension: 61, # https://docs.google.com/spreadsheets/d/1h4vGXzIbhOWwUzourPLIc8WM-iU1b6WYOVDOZxmU1Uo/edit#gid=254065189&range=69:69 - allowed_variants: %w[A B Z], - control_variant: "Z", - ) - @requested_variant = ab_test.requested_variant(request.headers) - @requested_variant.configure_response(response) - - replacement = case @requested_variant.variant_name - when "A" - I18n.t("ab_tests.find_utr_number_video_links.A") - when "B" - I18n.t("ab_tests.find_utr_number_video_links.B") - else - I18n.t("ab_tests.find_utr_number_video_links.Z") - end - @content_item.body.sub!(placeholder, replacement) - end - end def temporary_ab_test_stop_self_employed_2 placeholder = "{{ab_test_sa_video_stop_self_employed_2}}" diff --git a/config/locales/ar.yml b/config/locales/ar.yml index 2a7a5c1c3..59f65b152 100644 --- a/config/locales/ar.yml +++ b/config/locales/ar.yml @@ -1,10 +1,6 @@ --- ar: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/az.yml b/config/locales/az.yml index e91c12a93..62dadeae6 100644 --- a/config/locales/az.yml +++ b/config/locales/az.yml @@ -1,10 +1,6 @@ --- az: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/be.yml b/config/locales/be.yml index 83e6af5c3..a3f9d4530 100644 --- a/config/locales/be.yml +++ b/config/locales/be.yml @@ -1,10 +1,6 @@ --- be: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/bg.yml b/config/locales/bg.yml index 15bbec554..414ced594 100644 --- a/config/locales/bg.yml +++ b/config/locales/bg.yml @@ -1,10 +1,6 @@ --- bg: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/bn.yml b/config/locales/bn.yml index 4be67dc86..ff44e1271 100644 --- a/config/locales/bn.yml +++ b/config/locales/bn.yml @@ -1,10 +1,6 @@ --- bn: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/cs.yml b/config/locales/cs.yml index 1ed4b41e8..9be97c45f 100644 --- a/config/locales/cs.yml +++ b/config/locales/cs.yml @@ -1,10 +1,6 @@ --- cs: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/cy.yml b/config/locales/cy.yml index a4fa7d7d8..0bd06f53e 100644 --- a/config/locales/cy.yml +++ b/config/locales/cy.yml @@ -1,10 +1,6 @@ --- cy: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/da.yml b/config/locales/da.yml index 7bf08e45e..056157599 100644 --- a/config/locales/da.yml +++ b/config/locales/da.yml @@ -1,10 +1,6 @@ --- da: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/de.yml b/config/locales/de.yml index 71eba2f52..794f5cc29 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -1,10 +1,6 @@ --- de: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/dr.yml b/config/locales/dr.yml index 3acc6b768..80696916a 100644 --- a/config/locales/dr.yml +++ b/config/locales/dr.yml @@ -1,10 +1,6 @@ --- dr: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/el.yml b/config/locales/el.yml index 2bdff03ac..a7ab79b6c 100644 --- a/config/locales/el.yml +++ b/config/locales/el.yml @@ -1,10 +1,6 @@ --- el: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/en.yml b/config/locales/en.yml index f991e6c9c..5e2e611eb 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,10 +1,6 @@ --- en: ab_tests: - find_utr_number_video_links: - A: in the HMRC app under 'Your details' or in the 'Self Assessment' section - B: in the HMRC app - watch a video about finding your UTR number in the app - Z: in the HMRC app under 'Your details' or in the 'Self Assessment' section sa_video_return_2: A:

If you do not have a Government Gateway account

B:

Watch this video to find out more about how to file your tax return.

My first Self Assessment tax return

If you do not have a Government Gateway account

diff --git a/config/locales/es-419.yml b/config/locales/es-419.yml index c2bbb9119..7f81c9104 100644 --- a/config/locales/es-419.yml +++ b/config/locales/es-419.yml @@ -1,10 +1,6 @@ --- es-419: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/es.yml b/config/locales/es.yml index c81df09a8..8584c8914 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -1,10 +1,6 @@ --- es: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/et.yml b/config/locales/et.yml index 47a08818b..fb8c89b90 100644 --- a/config/locales/et.yml +++ b/config/locales/et.yml @@ -1,10 +1,6 @@ --- et: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/fa.yml b/config/locales/fa.yml index 917eb8278..a79be452a 100644 --- a/config/locales/fa.yml +++ b/config/locales/fa.yml @@ -1,10 +1,6 @@ --- fa: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/fi.yml b/config/locales/fi.yml index fc6f7ee23..0d14a8075 100644 --- a/config/locales/fi.yml +++ b/config/locales/fi.yml @@ -1,10 +1,6 @@ --- fi: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/fr.yml b/config/locales/fr.yml index da6a83969..f268e3fe6 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -1,10 +1,6 @@ --- fr: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/gd.yml b/config/locales/gd.yml index 6d53b5da4..f32819461 100644 --- a/config/locales/gd.yml +++ b/config/locales/gd.yml @@ -1,10 +1,6 @@ --- gd: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/gu.yml b/config/locales/gu.yml index 9d82508f6..252a86b13 100644 --- a/config/locales/gu.yml +++ b/config/locales/gu.yml @@ -1,10 +1,6 @@ --- gu: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/he.yml b/config/locales/he.yml index d31c9c0b9..c4ac5b55d 100644 --- a/config/locales/he.yml +++ b/config/locales/he.yml @@ -1,10 +1,6 @@ --- he: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/hi.yml b/config/locales/hi.yml index dece04261..f41c56cf0 100644 --- a/config/locales/hi.yml +++ b/config/locales/hi.yml @@ -1,10 +1,6 @@ --- hi: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/hr.yml b/config/locales/hr.yml index 9723dca5e..f192a9bf0 100644 --- a/config/locales/hr.yml +++ b/config/locales/hr.yml @@ -1,10 +1,6 @@ --- hr: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/hu.yml b/config/locales/hu.yml index b4c7df248..2a9dfab1b 100644 --- a/config/locales/hu.yml +++ b/config/locales/hu.yml @@ -1,10 +1,6 @@ --- hu: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/hy.yml b/config/locales/hy.yml index 899c82d95..465acea83 100644 --- a/config/locales/hy.yml +++ b/config/locales/hy.yml @@ -1,10 +1,6 @@ --- hy: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/id.yml b/config/locales/id.yml index cdcf1e6e2..cbd0b6113 100644 --- a/config/locales/id.yml +++ b/config/locales/id.yml @@ -1,10 +1,6 @@ --- id: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/is.yml b/config/locales/is.yml index 45d4a68ea..9fab7d1fa 100644 --- a/config/locales/is.yml +++ b/config/locales/is.yml @@ -1,10 +1,6 @@ --- is: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/it.yml b/config/locales/it.yml index af563794c..8e4af757f 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -1,10 +1,6 @@ --- it: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/ja.yml b/config/locales/ja.yml index 5c629b0c7..1516dff6d 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -1,10 +1,6 @@ --- ja: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/ka.yml b/config/locales/ka.yml index 671dfe11e..53c9db69a 100644 --- a/config/locales/ka.yml +++ b/config/locales/ka.yml @@ -1,10 +1,6 @@ --- ka: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/kk.yml b/config/locales/kk.yml index 9fa92e3cf..7dd4f5276 100644 --- a/config/locales/kk.yml +++ b/config/locales/kk.yml @@ -1,10 +1,6 @@ --- kk: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/ko.yml b/config/locales/ko.yml index c2ee12e85..0a5f5bc67 100644 --- a/config/locales/ko.yml +++ b/config/locales/ko.yml @@ -1,10 +1,6 @@ --- ko: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/lt.yml b/config/locales/lt.yml index 81652157c..94a2d89a3 100644 --- a/config/locales/lt.yml +++ b/config/locales/lt.yml @@ -1,10 +1,6 @@ --- lt: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/lv.yml b/config/locales/lv.yml index 38cc20d4b..24f054f78 100644 --- a/config/locales/lv.yml +++ b/config/locales/lv.yml @@ -1,10 +1,6 @@ --- lv: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/ms.yml b/config/locales/ms.yml index ea59fd4cd..ad6670f7d 100644 --- a/config/locales/ms.yml +++ b/config/locales/ms.yml @@ -1,10 +1,6 @@ --- ms: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/mt.yml b/config/locales/mt.yml index 31b7e9200..04599f6ca 100644 --- a/config/locales/mt.yml +++ b/config/locales/mt.yml @@ -1,10 +1,6 @@ --- mt: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/ne.yml b/config/locales/ne.yml index aac9ef2d1..b26996089 100644 --- a/config/locales/ne.yml +++ b/config/locales/ne.yml @@ -1,10 +1,6 @@ --- ne: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/nl.yml b/config/locales/nl.yml index ab5a1e399..0ade088ce 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -1,10 +1,6 @@ --- nl: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/no.yml b/config/locales/no.yml index e68c66dd1..97b78073b 100644 --- a/config/locales/no.yml +++ b/config/locales/no.yml @@ -1,10 +1,6 @@ --- 'no': ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/pa-pk.yml b/config/locales/pa-pk.yml index 198ed01f9..83d761722 100644 --- a/config/locales/pa-pk.yml +++ b/config/locales/pa-pk.yml @@ -1,10 +1,6 @@ --- pa-pk: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/pa.yml b/config/locales/pa.yml index 1bc260a90..33468cb3e 100644 --- a/config/locales/pa.yml +++ b/config/locales/pa.yml @@ -1,10 +1,6 @@ --- pa: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/pl.yml b/config/locales/pl.yml index c6fab9abc..2bc358d6b 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -1,10 +1,6 @@ --- pl: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/ps.yml b/config/locales/ps.yml index d7ad4453d..39d30aaf7 100644 --- a/config/locales/ps.yml +++ b/config/locales/ps.yml @@ -1,10 +1,6 @@ --- ps: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/pt.yml b/config/locales/pt.yml index 258b6c73d..088144fae 100644 --- a/config/locales/pt.yml +++ b/config/locales/pt.yml @@ -1,10 +1,6 @@ --- pt: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/ro.yml b/config/locales/ro.yml index 74e4db3eb..2b02e2074 100644 --- a/config/locales/ro.yml +++ b/config/locales/ro.yml @@ -1,10 +1,6 @@ --- ro: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/ru.yml b/config/locales/ru.yml index a9b583df6..9c6fd82a2 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -1,10 +1,6 @@ --- ru: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/si.yml b/config/locales/si.yml index 30f11df75..09b400ee2 100644 --- a/config/locales/si.yml +++ b/config/locales/si.yml @@ -1,10 +1,6 @@ --- si: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/sk.yml b/config/locales/sk.yml index bfd083224..98fb358fd 100644 --- a/config/locales/sk.yml +++ b/config/locales/sk.yml @@ -1,10 +1,6 @@ --- sk: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/sl.yml b/config/locales/sl.yml index e1a2d2a3a..b649540c2 100644 --- a/config/locales/sl.yml +++ b/config/locales/sl.yml @@ -1,10 +1,6 @@ --- sl: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/so.yml b/config/locales/so.yml index 88c75e1a4..868afafab 100644 --- a/config/locales/so.yml +++ b/config/locales/so.yml @@ -1,10 +1,6 @@ --- so: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/sq.yml b/config/locales/sq.yml index 7f7314242..79aedb4a8 100644 --- a/config/locales/sq.yml +++ b/config/locales/sq.yml @@ -1,10 +1,6 @@ --- sq: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/sr.yml b/config/locales/sr.yml index 8d6c7d606..017edb4fe 100644 --- a/config/locales/sr.yml +++ b/config/locales/sr.yml @@ -1,10 +1,6 @@ --- sr: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/sv.yml b/config/locales/sv.yml index 72438dc47..7cb837a6a 100644 --- a/config/locales/sv.yml +++ b/config/locales/sv.yml @@ -1,10 +1,6 @@ --- sv: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/sw.yml b/config/locales/sw.yml index 5fcff7cdf..a4a6b864d 100644 --- a/config/locales/sw.yml +++ b/config/locales/sw.yml @@ -1,10 +1,6 @@ --- sw: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/ta.yml b/config/locales/ta.yml index 3d813f7db..b7f6875b5 100644 --- a/config/locales/ta.yml +++ b/config/locales/ta.yml @@ -1,10 +1,6 @@ --- ta: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/th.yml b/config/locales/th.yml index 05e193ab9..685ac194e 100644 --- a/config/locales/th.yml +++ b/config/locales/th.yml @@ -1,10 +1,6 @@ --- th: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/tk.yml b/config/locales/tk.yml index 310491817..5f9b9ed2b 100644 --- a/config/locales/tk.yml +++ b/config/locales/tk.yml @@ -1,10 +1,6 @@ --- tk: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/tr.yml b/config/locales/tr.yml index d6160fa22..e47423b7e 100644 --- a/config/locales/tr.yml +++ b/config/locales/tr.yml @@ -1,10 +1,6 @@ --- tr: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/uk.yml b/config/locales/uk.yml index 96973c06d..0cb12769a 100644 --- a/config/locales/uk.yml +++ b/config/locales/uk.yml @@ -1,10 +1,6 @@ --- uk: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/ur.yml b/config/locales/ur.yml index 7834f7203..5be45117f 100644 --- a/config/locales/ur.yml +++ b/config/locales/ur.yml @@ -1,10 +1,6 @@ --- ur: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/uz.yml b/config/locales/uz.yml index a1f47f056..d25d47575 100644 --- a/config/locales/uz.yml +++ b/config/locales/uz.yml @@ -1,10 +1,6 @@ --- uz: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/vi.yml b/config/locales/vi.yml index ea80109de..e5d5417cd 100644 --- a/config/locales/vi.yml +++ b/config/locales/vi.yml @@ -1,10 +1,6 @@ --- vi: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/yi.yml b/config/locales/yi.yml index cd5ef9f88..3688475ba 100644 --- a/config/locales/yi.yml +++ b/config/locales/yi.yml @@ -1,10 +1,6 @@ --- yi: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/zh-hk.yml b/config/locales/zh-hk.yml index d5d4834bd..64eddf1bf 100644 --- a/config/locales/zh-hk.yml +++ b/config/locales/zh-hk.yml @@ -1,10 +1,6 @@ --- zh-hk: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/zh-tw.yml b/config/locales/zh-tw.yml index b731c19dc..64aeb9080 100644 --- a/config/locales/zh-tw.yml +++ b/config/locales/zh-tw.yml @@ -1,10 +1,6 @@ --- zh-tw: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/config/locales/zh.yml b/config/locales/zh.yml index 5ae841ec0..56a14e45d 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -1,10 +1,6 @@ --- zh: ab_tests: - find_utr_number_video_links: - A: - B: - Z: sa_video_return_2: A: B: diff --git a/test/controllers/content_items_controller_test.rb b/test/controllers/content_items_controller_test.rb index 8cf8a7265..7d4bae0e4 100644 --- a/test/controllers/content_items_controller_test.rb +++ b/test/controllers/content_items_controller_test.rb @@ -408,51 +408,6 @@ class ContentItemsControllerTest < ActionController::TestCase end end - test "AB test replaces content on the find-utr-number page with default" do - content_item = content_store_has_schema_example("answer", "answer") - content_item["base_path"] = "/find-utr-number" - content_item["details"]["body"] = "
  • {{ab_test_find_utr_number_video_links}}
  • " - - stub_content_store_has_item(content_item["base_path"], content_item) - - with_variant FindUtrNumberVideoLinks: "Z" do - get :show, params: { path: path_for(content_item) } - assert_response :success - assert_no_match "{{ab_test_find_utr_number_video_links}}", response.body - assert_match "
  • #{I18n.t('ab_tests.find_utr_number_video_links.Z')}
  • ", response.body - end - end - - test "AB test replaces content on the find-utr-number page with variant A" do - content_item = content_store_has_schema_example("answer", "answer") - content_item["base_path"] = "/find-utr-number" - content_item["details"]["body"] = "
  • {{ab_test_find_utr_number_video_links}}
  • " - - stub_content_store_has_item(content_item["base_path"], content_item) - - with_variant FindUtrNumberVideoLinks: "A" do - get :show, params: { path: path_for(content_item) } - assert_response :success - assert_no_match "{{ab_test_find_utr_number_video_links}}", response.body - assert_match "
  • #{I18n.t('ab_tests.find_utr_number_video_links.A')}
  • ", response.body - end - end - - test "AB test replaces content on the find-utr-number page with variant B" do - content_item = content_store_has_schema_example("answer", "answer") - content_item["base_path"] = "/find-utr-number" - content_item["details"]["body"] = "
  • {{ab_test_find_utr_number_video_links}}
  • " - - stub_content_store_has_item(content_item["base_path"], content_item) - - with_variant FindUtrNumberVideoLinks: "B" do - get :show, params: { path: path_for(content_item) } - assert_response :success - assert_no_match "{{ab_test_find_utr_number_video_links}}", response.body - assert_match "
  • #{I18n.t('ab_tests.find_utr_number_video_links.B')}
  • ", response.body - end - end - test "AB test replaces content on the log-in-file-self-assessment-tax-return page with default" do content_item = content_store_has_schema_example("answer", "answer") content_item["base_path"] = "/log-in-file-self-assessment-tax-return"