Skip to content

Commit

Permalink
Create switch and test for onward journeys
Browse files Browse the repository at this point in the history
  • Loading branch information
abeddow91 committed May 7, 2024
1 parent 8319482 commit 4aedd08
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
10 changes: 10 additions & 0 deletions common/app/conf/switches/ABTestSwitches.scala
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,14 @@ trait ABTestSwitches {
sellByDate = Some(LocalDate.of(2024, 5, 31)),
exposeClientSide = true,
)

Switch(
ABTests,
"ab-onward-journeys",
"Test click through rate when there is only one onward journey container shown.",
owners = Seq(Owner.withEmail("[email protected]")),
safeState = Off,
sellByDate = Some(LocalDate.of(2024, 6, 7)),
exposeClientSide = true,
)
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { ABTest } from '@guardian/ab-core';
import { mpuWhenNoEpic } from './tests/mpu-when-no-epic';
import { onwardJourneys } from "./tests/onward-journeys";
import { remoteRRHeaderLinksTest } from './tests/remote-header-test';
import { signInGateAlternativeWording } from './tests/sign-in-gate-alternative-wording';
import { signInGateMainControl } from './tests/sign-in-gate-main-control';
Expand All @@ -13,4 +14,5 @@ export const concurrentTests: readonly ABTest[] = [
signInGateAlternativeWording,
remoteRRHeaderLinksTest,
mpuWhenNoEpic,
onwardJourneys,
];
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import type { ABTest } from '@guardian/ab-core';

export const onwardJourneys: ABTest = {
id: 'OnwardJourneys',
start: '2025-03-01', // update once test is ready to go live
expiry: '2025-12-01', // update once test is ready to go live
author: '@web-experience',
description:
'Show the user one onward journey containers at a time to see which is the most effective',
audience: 25 / 100,
audienceOffset: 0,
audienceCriteria: 'all users',
dataLinkNames: 'OnwardJourneys',
idealOutcome:
'Determine which combination of onward journey containers is the most effective',
showForSensitive: true,
canRun: () => true,
variants: [
{
id: 'control',
test: (): void => {},

Check failure on line 21 in static/src/javascripts/projects/common/modules/experiments/tests/onward-journeys.ts

View workflow job for this annotation

GitHub Actions / Typescript

Unexpected empty method 'test'
},
{
id: 'variant-1',
test: (): void => {},

Check failure on line 25 in static/src/javascripts/projects/common/modules/experiments/tests/onward-journeys.ts

View workflow job for this annotation

GitHub Actions / Typescript

Unexpected empty method 'test'
},
{
id: 'variant-2',
test: (): void => {},

Check failure on line 29 in static/src/javascripts/projects/common/modules/experiments/tests/onward-journeys.ts

View workflow job for this annotation

GitHub Actions / Typescript

Unexpected empty method 'test'
},
{
id: 'variant-3',
test: (): void => {},

Check failure on line 33 in static/src/javascripts/projects/common/modules/experiments/tests/onward-journeys.ts

View workflow job for this annotation

GitHub Actions / Typescript

Unexpected empty method 'test'
},
],
successMeasure: '',
};

0 comments on commit 4aedd08

Please sign in to comment.