-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(abtest): set up test for passcodes to 10% of audience
- Loading branch information
Showing
6 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export const abSwitches = { | ||
abExampleTest: false, | ||
abPasscodeSignInTest: true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
src/shared/model/experiments/tests/passcode-signin-test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { ABTest } from '@guardian/ab-core'; | ||
|
||
export const passcodeSignInTest: ABTest = { | ||
id: 'PasscodeSignInTest', // This ID must match the Server Side AB Test | ||
start: '2025-01-13', | ||
expiry: '2025-01-31', // Remember that the server side test expiry can be different | ||
author: '[email protected]', | ||
description: | ||
'Testing the release of one time passcodes as the default sign in option', | ||
audience: 0.1, // 10% (1 is 100%) | ||
audienceOffset: 0, // 0% (1 is 100%). Prevent overlapping with other tests. | ||
successMeasure: 'Users sign in successfully with passcodes', | ||
audienceCriteria: 'Everyone', | ||
idealOutcome: 'Users sign in successfully with passcodes', | ||
showForSensitive: true, // Should this A/B test run on sensitive articles? | ||
canRun: () => true, // Check for things like user or page sections | ||
variants: [ | ||
{ | ||
id: 'variant', | ||
test: (): string => { | ||
return 'variant'; | ||
}, | ||
}, | ||
], | ||
}; |