Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ab-testing/config/abTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,18 @@ const ABTests: ABTest[] = [
groups: ["control", "variant"],
shouldForceMetricsCollection: true,
},
{
name: "webx-world-cup-2026-subnav",
description:
"Test of World Cup 2026 subnav on world cup related content",
owners: ["dotcom.platform@guardian.co.uk:"],
expirationDate: "2026-07-20",
type: "server",
status: "ON",
audienceSize: 0 / 100,
groups: ["enable"],
shouldForceMetricsCollection: false,
},
];

const activeABtests = ABTests.filter((test) => test.status === "ON");
Expand Down
22 changes: 22 additions & 0 deletions dotcom-rendering/src/components/DirectoryPageNav.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
import { allModes } from '../../.storybook/modes';
import preview from '../../.storybook/preview';
import { BetaABTests } from '../experiments/lib/beta-ab-tests';
import { setBetaABTests } from '../lib/useAB';
import { DirectoryPageNav } from './DirectoryPageNav';

const mockAB = new BetaABTests({
isServer: true,
serverSideABTests: {
'webx-world-cup-2026-subnav': 'enable',
},
});
setBetaABTests(mockAB);

const meta = preview.meta({
component: DirectoryPageNav,
title: 'Components/Directory Page Nav',
Expand All @@ -22,6 +32,18 @@ export const WomensEuro2025 = meta.story({
},
});

export const WorldCup2026 = meta.story({
args: {
pageId: 'football/world-cup-2026',
},
});

export const WorldCup2026MatchCenter = meta.story({
args: {
pageId: 'football/world-cup-2026/overview',
},
});

export const OtherCompetition = meta.story({
args: {
pageId: 'football/premierleague/table',
Expand Down
Loading
Loading