From T402966#11232544:
Observed: I am seeing a few duplicates in testing.
Expected: No duplicates
(I'll flesh out this ticket with more detail tomorrow)
Requirement
When viewing the Image Browsing feature, no duplicate images from other wikis should appear in the carousel or detail view. The image results must be unique and sorted primarily by frequency of reuse across Wikimedia projects. The feature must correctly merge and order results even when different services (e.g., search relevance and globalusage) return items in varying sequences.
BDD
Feature: Prevent duplicate images and ensure proper sorting in Image Browsing
Scenario: Image Browsing displays unique images across multiple wiki sources Given the user opens an article with Image Browsing enabled When the carousel loads images from multiple sources (including globalusage) Then each image should appear only once
Test Steps
Test Case 1: Verify no duplicate images appear in Image Browsing
- Navigate to https://24f17e0e4a.catalyst.wmcloud.org/wiki/London?imageBrowsing=1&useskin=minerva#/imagebrowsing/File:London_Skyline_(125508655).jpeg
- Observe the image carousel and detail view
- AC1: No duplicate images appear in the carousel or detail view
QA Results - Patchdemo
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T406139#11265354 |


