From 8202c3b860c64882578ae5fef084354581dd51f0 Mon Sep 17 00:00:00 2001 From: Dominik Lander Date: Thu, 21 Nov 2024 09:43:47 +0000 Subject: [PATCH] Add onwards content article test --- common/app/conf/switches/ABTestSwitches.scala | 13 +++++++++- .../tests/onwards-content-article.js | 24 +++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 static/src/javascripts/projects/common/modules/experiments/tests/onwards-content-article.js diff --git a/common/app/conf/switches/ABTestSwitches.scala b/common/app/conf/switches/ABTestSwitches.scala index 4242553405b..3a1af373203 100644 --- a/common/app/conf/switches/ABTestSwitches.scala +++ b/common/app/conf/switches/ABTestSwitches.scala @@ -55,7 +55,18 @@ trait ABTestSwitches { "Test the impact of showing the user a component that highlights the Guardians journalism", owners = Seq(Owner.withEmail("dotcom.platform@guardian.co.uk")), safeState = Off, - sellByDate = Some(LocalDate.of(2024, 12, 18)), + sellByDate = Some(LocalDate.of(2025, 1, 29)), + exposeClientSide = true, + highImpact = false, + ) + + Switch( + ABTests, + "ab-onwards-content-article", + "Test the impact of showing the galleries onwards content component on article pages", + owners = Seq(Owner.withEmail("dotcom.platform@guardian.co.uk")), + safeState = Off, + sellByDate = Some(LocalDate.of(2025, 1, 29)), exposeClientSide = true, highImpact = false, ) diff --git a/static/src/javascripts/projects/common/modules/experiments/tests/onwards-content-article.js b/static/src/javascripts/projects/common/modules/experiments/tests/onwards-content-article.js new file mode 100644 index 00000000000..3cdf4fc812f --- /dev/null +++ b/static/src/javascripts/projects/common/modules/experiments/tests/onwards-content-article.js @@ -0,0 +1,24 @@ +export const onwardsContentArticle = { + id: 'onwardsContentArticle', + start: '2024-11-25', + expiry: '2025-01-29', + author: 'dotcom.platform@guardian.co.uk', + description: + 'Test the impact of showing the galleries onwards content component on article pages.', + audience: 0 / 100, + audienceOffset: 0 / 100, + audienceCriteria: 'Article pages', + successMeasure: + 'Users are more likely to click a link in the onward content component.', + canRun: () => true, + variants: [ + { + id: 'control', + test: () => {}, + }, + { + id: 'variant', + test: () => {}, + }, + ], +};