Background
Now that the AB test is over, we want to make sure we remove the code we wrote. This includes:
- Hooks firing in MobileFrontend and RelatedArticles
- Bucketing code in RelatedArticles
- Instrumentation in WikimediaEvents
- Eventstream configuration
- AB flag configuration
- AB test schema
- all other styles/js/html we wrote for this code
User story
- As a developer, we want to avoid accumulating tech debt and unused code so we can deliver features faster
Requirements
- No visual changes
- All code and references to the search Ab test code are removed
BDD
Feature: Mobile search continues to function after removing AB test code
Scenario: Search field interaction functions as before
Given I am an anonymous user on mobile
When I tap the search field
Then the standard type-ahead search suggestions should appear
And no empty-state recommendations are shown
Scenario: Search results display correctly after typing
Given I enter a search query in the search field
When the results populate
Then I see relevant results with no visual regressions or JS errorsTest Steps
Test Case 1: Verify search behaves normally without A/B test features
- Visit https://en.m.wikipedia.beta.wmflabs.org on a mobile viewport.
- Tap the search bar on the main page.
- Type in a search term like “Dog”.
- Confirm that standard type-ahead suggestions appear.
- AC1: Confirm no empty search recommendations are shown.
- AC2: Confirm type-ahead results show as expected.
- AC3: Confirm no UI regressions or console errors occur.
Design
Acceptance criteria
- No search ab test events are firing
- no search ab enrollment is happening
QA Results - Prod
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T388719#10812626 |
| 2 | ✅ | T388719#10812626 |
| 3 | ✅ | T388719#10812626 |
