Skip to content

Commit 17dd3ac

Browse files
authored
Add second europe beta test. This uses the naming convention europeBetaFrontTest2 to align with apps. (#13809)
This test is for 50% of users. By seperating the 0% and 50% tests, we can have an immediate go live via a switch, rather than having to wait for a deploy. This test will run from 22nd April to 29th april inclusive
1 parent 4ec77ab commit 17dd3ac

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

dotcom-rendering/src/client/adaptiveSite.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ export const shouldAdapt = async (): Promise<boolean> => {
2121
* This is a temporary measure to ensure that the front is not adapted during testing.
2222
*/
2323
if (
24-
window.guardian.config.tests.europeBetaFrontVariant === 'variant' &&
24+
(window.guardian.config.tests.europeBetaFrontVariant === 'variant' ||
25+
window.guardian.config.tests.europeBetaFrontTest2Variant ===
26+
'variant') &&
2527
window.location.pathname === '/europe'
2628
) {
2729
return false;

dotcom-rendering/src/layouts/FrontLayout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,12 @@ export const FrontLayout = ({ front, NAV }: Props) => {
156156
return '5:3';
157157
}
158158
};
159-
160159
const Highlights = () => {
161160
const showHighlights =
162161
// Must be opted into the Europe beta test or in preview
163-
abTests.europeBetaFrontVariant === 'variant' || isPreview;
162+
abTests.europeBetaFrontVariant === 'variant' ||
163+
abTests.europeBetaFrontTest2Variant === 'variant' ||
164+
isPreview;
164165

165166
const highlightsCollection =
166167
front.pressedPage.collections.find(isHighlights);

0 commit comments

Comments
 (0)