diff --git a/app/controllers/content_items_controller.rb b/app/controllers/content_items_controller.rb index ffbd34d89..46362e95c 100644 --- a/app/controllers/content_items_controller.rb +++ b/app/controllers/content_items_controller.rb @@ -25,8 +25,6 @@ class ContentItemsController < ApplicationController def show load_content_item - temporary_ab_test_stop_self_employed_2 - temporary_ab_test_sa_video_return_2 set_expiry if is_service_manual? @@ -269,55 +267,4 @@ def csp_connect_src @content_item.csp_connect_src end - - # TEMPORARY (author: richard.towers, expected end date: February 2024) - - def temporary_ab_test_stop_self_employed_2 - placeholder = "{{ab_test_sa_video_stop_self_employed_2}}" - if @content_item.base_path == "/stop-being-self-employed" && @content_item.body.include?(placeholder) - ab_test = GovukAbTesting::AbTest.new( - "SAVideoStopSelfEmployed2", - dimension: 47, # 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.sa_video_stop_self_employed_2.A") - when "B" - I18n.t("ab_tests.sa_video_stop_self_employed_2.B") - else - I18n.t("ab_tests.sa_video_stop_self_employed_2.Z") - end - @content_item.body.sub!(placeholder, replacement) - end - end - - def temporary_ab_test_sa_video_return_2 - placeholder = "{{ab_test_sa_video_return_2}}" - if @content_item.base_path == "/log-in-file-self-assessment-tax-return" && @content_item.body.include?(placeholder) - ab_test = GovukAbTesting::AbTest.new( - "SAVideoReturn2", - dimension: 47, - 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.sa_video_return_2.A") - when "B" - I18n.t("ab_tests.sa_video_return_2.B") - else - I18n.t("ab_tests.sa_video_return_2.Z") - end - @content_item.body.sub!(placeholder, replacement) - end - end - # /TEMPORARY end diff --git a/config/locales/ar.yml b/config/locales/ar.yml index 59f65b152..70df7d23c 100644 --- a/config/locales/ar.yml +++ b/config/locales/ar.yml @@ -1,14 +1,5 @@ --- ar: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/az.yml b/config/locales/az.yml index 62dadeae6..7576cea20 100644 --- a/config/locales/az.yml +++ b/config/locales/az.yml @@ -1,14 +1,5 @@ --- az: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/be.yml b/config/locales/be.yml index a3f9d4530..cb01961dc 100644 --- a/config/locales/be.yml +++ b/config/locales/be.yml @@ -1,14 +1,5 @@ --- be: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/bg.yml b/config/locales/bg.yml index 414ced594..b4693c86d 100644 --- a/config/locales/bg.yml +++ b/config/locales/bg.yml @@ -1,14 +1,5 @@ --- bg: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/bn.yml b/config/locales/bn.yml index ff44e1271..652dfb0e9 100644 --- a/config/locales/bn.yml +++ b/config/locales/bn.yml @@ -1,14 +1,5 @@ --- bn: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/cs.yml b/config/locales/cs.yml index 9be97c45f..d2d02bdbd 100644 --- a/config/locales/cs.yml +++ b/config/locales/cs.yml @@ -1,14 +1,5 @@ --- cs: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/cy.yml b/config/locales/cy.yml index 0bd06f53e..525b1434d 100644 --- a/config/locales/cy.yml +++ b/config/locales/cy.yml @@ -1,14 +1,5 @@ --- cy: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/da.yml b/config/locales/da.yml index 056157599..4e939a68f 100644 --- a/config/locales/da.yml +++ b/config/locales/da.yml @@ -1,14 +1,5 @@ --- da: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/de.yml b/config/locales/de.yml index 794f5cc29..10b60e96e 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -1,14 +1,5 @@ --- de: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/dr.yml b/config/locales/dr.yml index 80696916a..7a69ffb8c 100644 --- a/config/locales/dr.yml +++ b/config/locales/dr.yml @@ -1,14 +1,5 @@ --- dr: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/el.yml b/config/locales/el.yml index a7ab79b6c..6b1c0add4 100644 --- a/config/locales/el.yml +++ b/config/locales/el.yml @@ -1,14 +1,5 @@ --- el: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/en.yml b/config/locales/en.yml index 3d3846585..a28396c30 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1,14 +1,5 @@ --- en: - ab_tests: - 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

- Z:

If you do not have a Government Gateway account

- sa_video_stop_self_employed_2: - A:

You’ll need to provide your National Insurance number and your UTR number.

- B:

You’ll need to provide your National Insurance number and your UTR number.

Watch this video to find out how to tell HMRC you're stopping self-employment.

How to stop Self Assessment online if you’re self-employed

- Z:

You’ll need to provide your National Insurance number and your UTR number.

call_for_evidence: and: and another_website_html: This call for evidence %{closed} held on another website diff --git a/config/locales/es-419.yml b/config/locales/es-419.yml index 7f81c9104..818aca49f 100644 --- a/config/locales/es-419.yml +++ b/config/locales/es-419.yml @@ -1,14 +1,5 @@ --- es-419: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/es.yml b/config/locales/es.yml index 8584c8914..f5a3dd154 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -1,14 +1,5 @@ --- es: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/et.yml b/config/locales/et.yml index fb8c89b90..d2ed11139 100644 --- a/config/locales/et.yml +++ b/config/locales/et.yml @@ -1,14 +1,5 @@ --- et: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/fa.yml b/config/locales/fa.yml index a79be452a..c311b4f30 100644 --- a/config/locales/fa.yml +++ b/config/locales/fa.yml @@ -1,14 +1,5 @@ --- fa: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/fi.yml b/config/locales/fi.yml index 0d14a8075..f645ccfda 100644 --- a/config/locales/fi.yml +++ b/config/locales/fi.yml @@ -1,14 +1,5 @@ --- fi: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/fr.yml b/config/locales/fr.yml index f268e3fe6..ab6beb0f1 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -1,14 +1,5 @@ --- fr: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/gd.yml b/config/locales/gd.yml index f32819461..c4451a856 100644 --- a/config/locales/gd.yml +++ b/config/locales/gd.yml @@ -1,14 +1,5 @@ --- gd: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/gu.yml b/config/locales/gu.yml index 252a86b13..47ef1c1b6 100644 --- a/config/locales/gu.yml +++ b/config/locales/gu.yml @@ -1,14 +1,5 @@ --- gu: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/he.yml b/config/locales/he.yml index c4ac5b55d..9216659e1 100644 --- a/config/locales/he.yml +++ b/config/locales/he.yml @@ -1,14 +1,5 @@ --- he: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/hi.yml b/config/locales/hi.yml index f41c56cf0..b7fc137f9 100644 --- a/config/locales/hi.yml +++ b/config/locales/hi.yml @@ -1,14 +1,5 @@ --- hi: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/hr.yml b/config/locales/hr.yml index f192a9bf0..42128b611 100644 --- a/config/locales/hr.yml +++ b/config/locales/hr.yml @@ -1,14 +1,5 @@ --- hr: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/hu.yml b/config/locales/hu.yml index 2a9dfab1b..c5bcb1a30 100644 --- a/config/locales/hu.yml +++ b/config/locales/hu.yml @@ -1,14 +1,5 @@ --- hu: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/hy.yml b/config/locales/hy.yml index 465acea83..7dd11ce46 100644 --- a/config/locales/hy.yml +++ b/config/locales/hy.yml @@ -1,14 +1,5 @@ --- hy: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/id.yml b/config/locales/id.yml index cbd0b6113..149d3206d 100644 --- a/config/locales/id.yml +++ b/config/locales/id.yml @@ -1,14 +1,5 @@ --- id: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/is.yml b/config/locales/is.yml index 9fab7d1fa..76fc4d200 100644 --- a/config/locales/is.yml +++ b/config/locales/is.yml @@ -1,14 +1,5 @@ --- is: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/it.yml b/config/locales/it.yml index 8e4af757f..d32c8d978 100644 --- a/config/locales/it.yml +++ b/config/locales/it.yml @@ -1,14 +1,5 @@ --- it: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/ja.yml b/config/locales/ja.yml index 1516dff6d..ae3255297 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -1,14 +1,5 @@ --- ja: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/ka.yml b/config/locales/ka.yml index 53c9db69a..fdfcc8d48 100644 --- a/config/locales/ka.yml +++ b/config/locales/ka.yml @@ -1,14 +1,5 @@ --- ka: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/kk.yml b/config/locales/kk.yml index 7dd4f5276..08a5b850c 100644 --- a/config/locales/kk.yml +++ b/config/locales/kk.yml @@ -1,14 +1,5 @@ --- kk: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/ko.yml b/config/locales/ko.yml index 0a5f5bc67..152d81d7f 100644 --- a/config/locales/ko.yml +++ b/config/locales/ko.yml @@ -1,14 +1,5 @@ --- ko: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/lt.yml b/config/locales/lt.yml index 94a2d89a3..dfdf6ea5d 100644 --- a/config/locales/lt.yml +++ b/config/locales/lt.yml @@ -1,14 +1,5 @@ --- lt: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/lv.yml b/config/locales/lv.yml index 24f054f78..8462413f9 100644 --- a/config/locales/lv.yml +++ b/config/locales/lv.yml @@ -1,14 +1,5 @@ --- lv: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/ms.yml b/config/locales/ms.yml index ad6670f7d..d0adf12ae 100644 --- a/config/locales/ms.yml +++ b/config/locales/ms.yml @@ -1,14 +1,5 @@ --- ms: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/mt.yml b/config/locales/mt.yml index 04599f6ca..d681d2782 100644 --- a/config/locales/mt.yml +++ b/config/locales/mt.yml @@ -1,14 +1,5 @@ --- mt: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/ne.yml b/config/locales/ne.yml index b26996089..72c40ed7d 100644 --- a/config/locales/ne.yml +++ b/config/locales/ne.yml @@ -1,14 +1,5 @@ --- ne: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/nl.yml b/config/locales/nl.yml index 0ade088ce..dfb3bf88a 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -1,14 +1,5 @@ --- nl: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/no.yml b/config/locales/no.yml index 97b78073b..00db1a73d 100644 --- a/config/locales/no.yml +++ b/config/locales/no.yml @@ -1,14 +1,5 @@ --- 'no': - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/pa-pk.yml b/config/locales/pa-pk.yml index 83d761722..f920fc7d8 100644 --- a/config/locales/pa-pk.yml +++ b/config/locales/pa-pk.yml @@ -1,14 +1,5 @@ --- pa-pk: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/pa.yml b/config/locales/pa.yml index 33468cb3e..82462c9dd 100644 --- a/config/locales/pa.yml +++ b/config/locales/pa.yml @@ -1,14 +1,5 @@ --- pa: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/pl.yml b/config/locales/pl.yml index 2bc358d6b..711645289 100644 --- a/config/locales/pl.yml +++ b/config/locales/pl.yml @@ -1,14 +1,5 @@ --- pl: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/ps.yml b/config/locales/ps.yml index 39d30aaf7..6f7e60c9c 100644 --- a/config/locales/ps.yml +++ b/config/locales/ps.yml @@ -1,14 +1,5 @@ --- ps: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/pt.yml b/config/locales/pt.yml index 088144fae..651103273 100644 --- a/config/locales/pt.yml +++ b/config/locales/pt.yml @@ -1,14 +1,5 @@ --- pt: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/ro.yml b/config/locales/ro.yml index 2b02e2074..a7f62e89c 100644 --- a/config/locales/ro.yml +++ b/config/locales/ro.yml @@ -1,14 +1,5 @@ --- ro: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/ru.yml b/config/locales/ru.yml index 9c6fd82a2..1aa919b9a 100644 --- a/config/locales/ru.yml +++ b/config/locales/ru.yml @@ -1,14 +1,5 @@ --- ru: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/si.yml b/config/locales/si.yml index 09b400ee2..9b09d3f0e 100644 --- a/config/locales/si.yml +++ b/config/locales/si.yml @@ -1,14 +1,5 @@ --- si: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/sk.yml b/config/locales/sk.yml index 98fb358fd..1223fb689 100644 --- a/config/locales/sk.yml +++ b/config/locales/sk.yml @@ -1,14 +1,5 @@ --- sk: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/sl.yml b/config/locales/sl.yml index b649540c2..727cf134c 100644 --- a/config/locales/sl.yml +++ b/config/locales/sl.yml @@ -1,14 +1,5 @@ --- sl: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/so.yml b/config/locales/so.yml index 868afafab..6cb86c729 100644 --- a/config/locales/so.yml +++ b/config/locales/so.yml @@ -1,14 +1,5 @@ --- so: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/sq.yml b/config/locales/sq.yml index 79aedb4a8..8eb21ecae 100644 --- a/config/locales/sq.yml +++ b/config/locales/sq.yml @@ -1,14 +1,5 @@ --- sq: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/sr.yml b/config/locales/sr.yml index 017edb4fe..0193c74b6 100644 --- a/config/locales/sr.yml +++ b/config/locales/sr.yml @@ -1,14 +1,5 @@ --- sr: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/sv.yml b/config/locales/sv.yml index 7cb837a6a..2dbfff672 100644 --- a/config/locales/sv.yml +++ b/config/locales/sv.yml @@ -1,14 +1,5 @@ --- sv: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/sw.yml b/config/locales/sw.yml index a4a6b864d..085d6d239 100644 --- a/config/locales/sw.yml +++ b/config/locales/sw.yml @@ -1,14 +1,5 @@ --- sw: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/ta.yml b/config/locales/ta.yml index b7f6875b5..c54abf18c 100644 --- a/config/locales/ta.yml +++ b/config/locales/ta.yml @@ -1,14 +1,5 @@ --- ta: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/th.yml b/config/locales/th.yml index 685ac194e..4d0f9d8e2 100644 --- a/config/locales/th.yml +++ b/config/locales/th.yml @@ -1,14 +1,5 @@ --- th: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/tk.yml b/config/locales/tk.yml index 5f9b9ed2b..aadf27745 100644 --- a/config/locales/tk.yml +++ b/config/locales/tk.yml @@ -1,14 +1,5 @@ --- tk: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/tr.yml b/config/locales/tr.yml index e47423b7e..4fe803788 100644 --- a/config/locales/tr.yml +++ b/config/locales/tr.yml @@ -1,14 +1,5 @@ --- tr: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/uk.yml b/config/locales/uk.yml index 0cb12769a..176414fa3 100644 --- a/config/locales/uk.yml +++ b/config/locales/uk.yml @@ -1,14 +1,5 @@ --- uk: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/ur.yml b/config/locales/ur.yml index 5be45117f..d6feb0b6b 100644 --- a/config/locales/ur.yml +++ b/config/locales/ur.yml @@ -1,14 +1,5 @@ --- ur: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/uz.yml b/config/locales/uz.yml index d25d47575..59a63c9fd 100644 --- a/config/locales/uz.yml +++ b/config/locales/uz.yml @@ -1,14 +1,5 @@ --- uz: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/vi.yml b/config/locales/vi.yml index e5d5417cd..ffe0377fb 100644 --- a/config/locales/vi.yml +++ b/config/locales/vi.yml @@ -1,14 +1,5 @@ --- vi: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/yi.yml b/config/locales/yi.yml index 3688475ba..3f830ccb9 100644 --- a/config/locales/yi.yml +++ b/config/locales/yi.yml @@ -1,14 +1,5 @@ --- yi: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/zh-hk.yml b/config/locales/zh-hk.yml index 64eddf1bf..d00453b5e 100644 --- a/config/locales/zh-hk.yml +++ b/config/locales/zh-hk.yml @@ -1,14 +1,5 @@ --- zh-hk: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/zh-tw.yml b/config/locales/zh-tw.yml index 64aeb9080..9416852fd 100644 --- a/config/locales/zh-tw.yml +++ b/config/locales/zh-tw.yml @@ -1,14 +1,5 @@ --- zh-tw: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/config/locales/zh.yml b/config/locales/zh.yml index 56a14e45d..c2c1562a0 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -1,14 +1,5 @@ --- zh: - ab_tests: - sa_video_return_2: - A: - B: - Z: - sa_video_stop_self_employed_2: - A: - B: - Z: call_for_evidence: and: another_website_html: diff --git a/test/controllers/content_items_controller_test.rb b/test/controllers/content_items_controller_test.rb index 7d4bae0e4..8cd57808a 100644 --- a/test/controllers/content_items_controller_test.rb +++ b/test/controllers/content_items_controller_test.rb @@ -364,95 +364,6 @@ class ContentItemsControllerTest < ActionController::TestCase assert_equal "true", @response.headers[Slimmer::Headers::REMOVE_SEARCH_HEADER] end - test "AB test replaces content on the stop-being-self-employed page with default" do - content_item = content_store_has_schema_example("answer", "answer") - content_item["base_path"] = "/stop-being-self-employed" - content_item["details"]["body"] = "{{ab_test_sa_video_stop_self_employed_2}}" - - stub_content_store_has_item(content_item["base_path"], content_item) - with_variant SAVideoStopSelfEmployed2: "Z" do - get :show, params: { path: path_for(content_item) } - assert_response :success - assert_no_match "{{ab_test_sa_video_stop_self_employed_2}}", response.body - assert_match I18n.t("ab_tests.sa_video_stop_self_employed_2.Z").to_s, response.body - end - end - - test "AB test replaces content on the stop-being-self-employed page with variant A" do - content_item = content_store_has_schema_example("answer", "answer") - content_item["base_path"] = "/stop-being-self-employed" - content_item["details"]["body"] = "{{ab_test_sa_video_stop_self_employed_2}}" - - stub_content_store_has_item(content_item["base_path"], content_item) - - with_variant SAVideoStopSelfEmployed2: "A" do - get :show, params: { path: path_for(content_item) } - assert_response :success - assert_no_match "{{ab_test_sa_video_stop_self_employed_2}}", response.body - assert_match I18n.t("ab_tests.sa_video_stop_self_employed_2.A").to_s, response.body - end - end - - test "AB test replaces content on the stop-being-self-employed page with variant B" do - content_item = content_store_has_schema_example("answer", "answer") - content_item["base_path"] = "/stop-being-self-employed" - content_item["details"]["body"] = "{{ab_test_sa_video_stop_self_employed_2}}" - - stub_content_store_has_item(content_item["base_path"], content_item) - - with_variant SAVideoStopSelfEmployed2: "B" do - get :show, params: { path: path_for(content_item) } - assert_response :success - assert_no_match "{{ab_test_sa_video_stop_self_employed_2}}", response.body - assert_match I18n.t("ab_tests.sa_video_stop_self_employed_2.B").to_s, 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" - content_item["details"]["body"] = "
  • {{ab_test_sa_video_return_2}}
  • " - - stub_content_store_has_item(content_item["base_path"], content_item) - - with_variant SAVideoReturn2: "Z" do - get :show, params: { path: path_for(content_item) } - assert_response :success - assert_no_match "{{ab_test_sa_video_return_2}}", response.body - assert_match "
  • #{I18n.t('ab_tests.sa_video_return_2.Z')}
  • ", response.body - end - end - - test "AB test replaces content on the log-in-file-self-assessment-tax-return page with variant A" do - content_item = content_store_has_schema_example("answer", "answer") - content_item["base_path"] = "/log-in-file-self-assessment-tax-return" - content_item["details"]["body"] = "
  • {{ab_test_sa_video_return_2}}
  • " - - stub_content_store_has_item(content_item["base_path"], content_item) - - with_variant SAVideoReturn2: "A" do - get :show, params: { path: path_for(content_item) } - assert_response :success - assert_no_match "{{ab_test_sa_video_return_2}}", response.body - assert_match "
  • #{I18n.t('ab_tests.sa_video_return_2.A')}
  • ", response.body - end - end - - test "AB test replaces content on the log-in-file-self-assessment-tax-return page with variant B" do - content_item = content_store_has_schema_example("answer", "answer") - content_item["base_path"] = "/log-in-file-self-assessment-tax-return" - content_item["details"]["body"] = "
  • {{ab_test_sa_video_return_2}}
  • " - - stub_content_store_has_item(content_item["base_path"], content_item) - - with_variant SAVideoReturn2: "B" do - get :show, params: { path: path_for(content_item) } - assert_response :success - assert_no_match "{{ab_test_sa_video_return_2}}", response.body - assert_match "
  • #{I18n.t('ab_tests.sa_video_return_2.B')}
  • ", response.body - end - end - def path_for(content_item, locale = nil) base_path = content_item["base_path"].sub(/^\//, "") base_path.gsub!(/\.#{locale}$/, "") if locale