Migrated from: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/997
Narrative
As a user, I can keep browsing all the images in an article in an infinite loop, so that when I get to the end, I can start again from the start, without having to backtrack.
This is a user suggestion from avery discerning tester on usertesting.com.
Acceptance Criteria
- Keep looping images when users browse a collection
- When you get to the last image, clicking next one more time should go to the first image
- Similarly, clicking the previous button back to the start image shouldloop back to the last image.
Related Bugs
Related Stories
Related Changesets
Derived Requirement
Ensure that users can browse images in an article in an infinite loop, allowing navigation from the last image back to the first and vice versa without interruption.
BDD
gherkin Feature: Infinite Loop Browsing in Image Collection Scenario: Loop from the last image back to the first in an article's image collection Given the user is browsing images in an article's image collection And the user reaches the last image When the user clicks the "next" button Then the first image in the collection should be displayed Scenario: Loop from the first image to the last in an article's image collection Given the user is browsing images in an article's image collection And the user is viewing the first image When the user clicks the "previous" button Then the last image in the collection should be displayed
Test Result - Beta|Prod
Status: ✅ PASS / ❓Need More Info / ❌ FAIL
Environment: beta/xyzwiki
OS: macOS Sonoma 15.0
Browser: Chrome 130
Device: MBA
Emulated Device: NA
Test Artifact(s):
Test Steps
Test Case 1: Loop from Last Image to First in Image Collection
- Navigate to an article with an image collection.
- Begin browsing the images by clicking the "next" button.
- Continue clicking until you reach the last image in the collection.
- ✅❓❌⬜ AC1: Confirm that clicking "next" after the last image takes you back to the first image.
Test Case 2: Loop from First Image to Last in Image Collection
- Navigate to the first image in the same collection.
- Click the "previous" button.
- ✅❓❌⬜ AC2: Confirm that clicking "previous" from the first image takes you to the last image in the collection.
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T77877#10261238 |
QA Results - PROD
AC | Status | Details |
---|---|---|
1 | ✅ | T77877#10261245 |