Skip to content

Admiral AB test group renamed#15478

Merged
AnastasiiaBalenko merged 5 commits intomainfrom
ab/admiral-variant-detect-fix
Mar 5, 2026
Merged

Admiral AB test group renamed#15478
AnastasiiaBalenko merged 5 commits intomainfrom
ab/admiral-variant-detect-fix

Conversation

@AnastasiiaBalenko
Copy link
Contributor

@AnastasiiaBalenko AnastasiiaBalenko commented Mar 4, 2026

Ticket link

What does this change?

  • This PR fixes the Admiral AB test wiring so the script runs under the correct cohort.
  • Updates the growth-admiral-adblock-recovery AB test group from 'control' to 'variant-detect'.
  • Updates the Admiral script gating to check 'variant-detect' instead of 'control'.
  • Passes 'variant-detect' as the variant name when the user is in the test cohort.
  • When the user is not in the test, the variant name defaults to 'variant-recover' and admiral is shown up to the user.

Why?

After #15388, the test had only control.
Per the agreed Admiral behaviour, that setup did not match the intended rollout for this phase.

The expected behaviour is:
Admiral script should run for the experiment cohort
modal should not be shown
Using 'variant-detect' aligns the AB test definition and runtime check with that expected behaviour, so the script executes as intended without surfacing the modal.

Testing

Deployed on CODE env, confirmed the modal is shown up for users opt-out from abTest, and nodal is not shown up for users in test varaint-detect group

Screenshots

@AnastasiiaBalenko AnastasiiaBalenko requested a review from a team as a code owner March 4, 2026 20:59
@AnastasiiaBalenko AnastasiiaBalenko added the fix Departmental tracking: fix label Mar 4, 2026
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

Hello 👋! When you're ready to run Chromatic, please apply the run_chromatic label to this PR.

You will need to reapply the label each time you want to run Chromatic.

Click here to see the Chromatic project.

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

abTests?.isUserInTestGroup(testName, 'variant-detect') ?? false;
const variantName = isInVariantDetectGroup
? 'variant-detect'
: 'variant-recovery';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'variant-recover'

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

name: "growth-admiral-adblock-recovery",
description: "Test Admiral ad blocker detection and recovery modal",
name: "growth-admiral-adblock-detect",
description: "Test Admiral ad blocker detection",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
description: "Test Admiral ad blocker detection",
description: "Control group for Admiral ad blocker - runs the detection script but does not show the modal",

@tomrf1 tomrf1 added run_chromatic Runs chromatic when label is applied and removed Do not merge ⚠️ labels Mar 5, 2026
@github-actions github-actions bot removed the run_chromatic Runs chromatic when label is applied label Mar 5, 2026
@AnastasiiaBalenko AnastasiiaBalenko merged commit f4608c3 into main Mar 5, 2026
23 checks passed
@AnastasiiaBalenko AnastasiiaBalenko deleted the ab/admiral-variant-detect-fix branch March 5, 2026 10:03
@gu-prout
Copy link

gu-prout bot commented Mar 5, 2026

Seen on PROD (merged by @AnastasiiaBalenko 12 minutes and 15 seconds ago) Please check your changes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix Departmental tracking: fix Seen-on-PROD

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants