Page MenuHomePhabricator

Show badge on tablet/desktop devices if in treatment
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Load mobile site, and make sure your viewport is fullscreen
  • Bucket yourself into the experiment
$.cookie( 'centralnotice_hide_fundraising', '{"v":1,"created":1779379520,"reason":"donate"}', { path: '/' } );
mw.testKitchen.overrideExperimentGroup('donor-delight-badge', 'treatment-b-simple');

What happens?:
No badge displays (unless you resize your browser to small)

What should have happened instead?:
Badge should show for all tablet users.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

BDD

Feature: Donor badge visible on tablet/desktop widths

  Scenario: Tablet-width mobile site in treatment
    Given I am a logged-out donor bucketed into treatment-b-simple on the mobile (Minerva) site
    And my viewport is at a tablet/desktop width (above the phone breakpoint)
    When the article loads
    Then the donor badge container is shown (not display:none)
    And the badge icon renders in the header

Test Plan

Test Case 1: Badge shows at tablet width
On the Minerva site at a tablet viewport (~768px+), bucket into treatment-b-simple (donor cookie + pref 1 + override); reload.
AC1: .minerva-badge-container is shown (display != none) at tablet width.
AC2: The badge icon renders (non-zero width) in the top-right of the header.

Test Results

ACStatusDetails for test run T428277#12008088
1tablet viewport 768px (Minerva): .minerva-badge-container display:block (not none) — see T428277_beta_AC1_1.png
2badge icon renders 35px wide, top-right of the header (left≈725 in the 768px viewport)

Event Timeline

Change #1298315 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/extensions/WikimediaCustomizations@master] Badge should display on tablet and desktop devices

https://gerrit.wikimedia.org/r/1298315

Volker_E renamed this task from Regression: Badge is not showing up on tablet/desktop devices to Show badge on tablet/desktop devices if in treatment.Jun 5 2026, 4:48 PM
Volker_E assigned this task to Jdlrobson-WMF.
Volker_E updated Other Assignee, added: Volker_E.

Change #1298315 merged by jenkins-bot:

[mediawiki/extensions/WikimediaCustomizations@master] Donor Delight Badge, styles: Show badge container also on tablet and desktop

https://gerrit.wikimedia.org/r/1298315

Volker to fold QA into a dedicated QA task.

Edtadros subscribed.

Test Result - Beta

Status: ✅ PASS
Environment: beta — en.wikipedia.beta.wmcloud.org/wiki/London (mobile/Minerva at tablet viewport 768px, iPad emulation), logged out, treatment-b-simple
OS: macOS Tahoe 26.x
Browser: Chrome Canary (latest as of test date)
Device: iPad (tablet emulation)
Emulated Device: iPad (768px viewport)

Setup (ticket repro): mobile site at tablet width; donor cookie centralnotice_hide_fundraising {reason:"donate"}; mw.user.clientPrefs.set("minerva-badge","1"); mw.testKitchen.overrideExperimentGroup("donor-delight-badge","treatment-b-simple").

Test Case 1: Badge shows at tablet width
✅ AC1: At a 768px tablet viewport on the Minerva site, .minerva-badge-container computes to display:block (previously hidden above the phone breakpoint — the regression this ticket fixes).
✅ AC2: The badge icon renders 35px wide in the top-right of the Minerva header (rect left ~725, top ~11), in treatment-b-simple with minerva-badge clientpref 1. The badge now displays for tablet (and desktop) widths, per "Badge should show for all tablet users."

T428277_beta_AC1_1.png (1,701×1,508 px, 651 KB)