diff --git a/ab-testing/config/abTests.ts b/ab-testing/config/abTests.ts index 3afc5da2228..6cbee25d650 100644 --- a/ab-testing/config/abTests.ts +++ b/ab-testing/config/abTests.ts @@ -196,8 +196,8 @@ const ABTests: ABTest[] = [ shouldForceMetricsCollection: false, }, { - name: "fronts-and-curation-editorial-headline-test", - description: "Allow editorial headline A/B tests to run on web", + name: "fronts-and-curation-editorial-test", + description: "Allow editorial A/B tests to run on web", owners: [ "fronts.and.curation@guardian.co.uk", "ab.test.mission@guardian.co.uk", @@ -205,7 +205,8 @@ const ABTests: ABTest[] = [ status: "ON", expirationDate: "2036-08-12", type: "server", - audienceSize: 0 / 100, + audienceSize: 25 / 100, + audienceSpace: "E", groups: ["a", "b"], shouldForceMetricsCollection: false, }, diff --git a/dotcom-rendering/src/model/enhanceCards.test.ts b/dotcom-rendering/src/model/enhanceCards.test.ts index 6cd200a41c3..65ead657afd 100644 --- a/dotcom-rendering/src/model/enhanceCards.test.ts +++ b/dotcom-rendering/src/model/enhanceCards.test.ts @@ -678,7 +678,7 @@ describe('Enhance Cards', () => { decideHeadline( cardWithNoEditorialTest, { - 'fronts-and-curation-editorial-headline-test': 'a', + 'fronts-and-curation-editorial-test': 'a', }, true, 'test-front', @@ -691,7 +691,7 @@ describe('Enhance Cards', () => { decideHeadline( cardWithEditorialTest, { - 'fronts-and-curation-editorial-headline-test': 'a', + 'fronts-and-curation-editorial-test': 'a', }, true, 'invalid-test-front', @@ -704,7 +704,7 @@ describe('Enhance Cards', () => { decideHeadline( cardWithEditorialTest, { - 'fronts-and-curation-editorial-headline-test': 'a', + 'fronts-and-curation-editorial-test': 'a', }, false, 'test-front', @@ -717,7 +717,7 @@ describe('Enhance Cards', () => { decideHeadline( cardWithEditorialTest, { - 'fronts-and-curation-editorial-headline-test': 'a', + 'fronts-and-curation-editorial-test': 'a', }, true, 'test-front', @@ -730,7 +730,7 @@ describe('Enhance Cards', () => { decideHeadline( cardWithEditorialTest, { - 'fronts-and-curation-editorial-headline-test': 'b', + 'fronts-and-curation-editorial-test': 'b', }, true, 'test-front', @@ -743,7 +743,7 @@ describe('Enhance Cards', () => { decideHeadline( cardWithEditorialTest, { - 'fronts-and-curation-editorial-headline-test': 'c', + 'fronts-and-curation-editorial-test': 'c', }, true, 'test-front', @@ -756,7 +756,7 @@ describe('Enhance Cards', () => { decideHeadline( cardWithEditorialTestWithUndefinedVariantMeta, { - 'fronts-and-curation-editorial-headline-test': 'a', + 'fronts-and-curation-editorial-test': 'a', }, true, 'test-front', @@ -769,7 +769,7 @@ describe('Enhance Cards', () => { decideHeadline( cardWithExpiredEditorialTest, { - 'fronts-and-curation-editorial-headline-test': 'a', + 'fronts-and-curation-editorial-test': 'a', }, true, 'test-front', @@ -782,7 +782,7 @@ describe('Enhance Cards', () => { decideHeadline( cardWithManuallyEndedEditorialTest, { - 'fronts-and-curation-editorial-headline-test': 'a', + 'fronts-and-curation-editorial-test': 'a', }, true, 'test-front', diff --git a/dotcom-rendering/src/model/enhanceCards.ts b/dotcom-rendering/src/model/enhanceCards.ts index af086355368..f9a6eac8344 100644 --- a/dotcom-rendering/src/model/enhanceCards.ts +++ b/dotcom-rendering/src/model/enhanceCards.ts @@ -216,8 +216,7 @@ export const decideHeadline = ( ): string => { const defaultHeadline = faciaCard.header.headline; - const testBucket = - serverSideABTests['fronts-and-curation-editorial-headline-test']; + const testBucket = serverSideABTests['fronts-and-curation-editorial-test']; const activeEditorialTest = findActiveEditorialTest( faciaCard.properties.tests,