Skip to content

Commit

Permalink
Add switch and AB test for looping video test
Browse files Browse the repository at this point in the history
Co-authored-by: Freddie Preece <freddiepreece@outlook.com>
  • Loading branch information
domlander and Fweddi committed Feb 6, 2025
1 parent 7a1f982 commit fdd327f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
11 changes: 11 additions & 0 deletions common/app/conf/switches/ABTestSwitches.scala
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,15 @@ trait ABTestSwitches {
exposeClientSide = true,
highImpact = false,
)

Switch(
ABTests,
"loop-video-test",
"Test looping videos effect on Core Web Vitals",
owners = Seq(Owner.withEmail("fronts.and.curation@guardian.co.uk")),
safeState = Off,
sellByDate = Some(LocalDate.of(2025, 5, 28)),
exposeClientSide = true,
highImpact = false,
)
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import type { ABTest } from '@guardian/ab-core';
import { auxiaSignInGate } from './tests/auxia-sign-in-gate';
import { loopVideoTest } from './tests/loop-video-cwv';
import { remoteRRHeaderLinksTest } from './tests/remote-header-test';
import { signInGateMainControl } from './tests/sign-in-gate-main-control';
import { signInGateMainVariant } from './tests/sign-in-gate-main-variant';
Expand All @@ -11,4 +12,5 @@ export const concurrentTests: readonly ABTest[] = [
signInGateMainControl,
remoteRRHeaderLinksTest,
auxiaSignInGate,
loopVideoTest,
];
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
export const loopVideoTest = {
id: 'LoopVideoTest',
start: '2025-02-06',
expiry: '2025-05-28',
author: 'fronts.and.curation@guardian.co.uk',
description: 'Test looping videos effect on Core Web Vitals',
audience: 0,
audienceOffset: 0,
successMeasure:
'Core Web Vitals are not significantly negatively affected.',
audienceCriteria: 'This will not be shown to any users',
showForSensitive: true,
canRun: () => true,
variants: [
{
id: 'control',
test: () => {},
},
{
id: 'variant',
test: () => {},
},
],
};

0 comments on commit fdd327f

Please sign in to comment.