File tree Expand file tree Collapse file tree 3 files changed +35
-0
lines changed
Expand file tree Collapse file tree 3 files changed +35
-0
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ import { useDetectAdBlock } from '../lib/useDetectAdBlock';
1717import { usePageViewId } from '../lib/usePageViewId' ;
1818import type { ServerSideTests } from '../types/config' ;
1919import { useConfig } from './ConfigContext' ;
20+ import { compareClientTestWithNewFramework } from 'src/experiments/tests/compare-client-test-with-new-framework' ;
2021
2122type Props = {
2223 commercialMetricsEnabled : boolean ;
@@ -30,6 +31,7 @@ const willRecordCoreWebVitals = Math.random() < sampling;
3031// For these tests switch off sampling and collect metrics for 100% of views
3132const clientSideTestsToForceMetrics : ABTest [ ] = [
3233 /* keep array multi-line */
34+ compareClientTestWithNewFramework ,
3335] ;
3436
3537const shouldCollectMetricsForBetaTests = ( userTestParticipations : string [ ] ) => {
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import { auxiaSignInGate } from './tests/auxia-sign-in-gate';
44import { signInGateMainControl } from './tests/sign-in-gate-main-control' ;
55import { signInGateMainVariant } from './tests/sign-in-gate-main-variant' ;
66import { userBenefitsApi } from './tests/user-benefits-api' ;
7+ import { compareClientTestWithNewFramework } from './tests/compare-client-test-with-new-framework' ;
78
89// keep in sync with ab-tests in frontend
910// https://github.com/guardian/frontend/tree/main/static/src/javascripts/projects/common/modules/experiments/ab-tests.ts
@@ -13,4 +14,5 @@ export const tests: ABTest[] = [
1314 signInGateMainControl ,
1415 userBenefitsApi ,
1516 auxiaSignInGate ,
17+ compareClientTestWithNewFramework ,
1618] ;
Original file line number Diff line number Diff line change 1+ import type { ABTest } from '@guardian/ab-core' ;
2+
3+ export const compareClientTestWithNewFramework : ABTest = {
4+ id : 'CompareClientTestWithNewFramework' ,
5+ start : '2025-10-08' ,
6+ expiry : '2025-11-01' ,
7+ author : 'Commercial Dev' ,
8+ description :
9+ 'A test to compare the old and new AB testing frameworks in DCR' ,
10+ audience : 10 / 100 ,
11+ audienceOffset : 0 ,
12+ successMeasure :
13+ 'No success measure, this is just to compare the two frameworks' ,
14+ audienceCriteria : 'Everyone' ,
15+ showForSensitive : true ,
16+ canRun : ( ) => true ,
17+ variants : [
18+ {
19+ id : 'control' ,
20+ test : ( ) : void => {
21+ /* no-op */
22+ } ,
23+ } ,
24+ {
25+ id : 'variant' ,
26+ test : ( ) : void => {
27+ /* no-op */
28+ } ,
29+ } ,
30+ ] ,
31+ } ;
You can’t perform that action at this time.
0 commit comments