Steps to replicate the issue (include links if applicable):
- Emulate mobile
- Visit https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Dog&useparsoid=1
- visit https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Dog&useparsoid=0 in another tab
What happens?:
The section headings are collapsed. The edit icon is hidden in the legacy parser, but visible in Parsoid.
What should have happened instead?:
The edit icon should be hidden until the section is expanded.
Requirement
Ensure that the edit icon is hidden by default for collapsed section headings on Parsoid mobile wikis, matching the behavior of the legacy parser. The edit icon should only be visible when the section is expanded.
BDD
Feature: Hide edit icon by default on Parsoid mobile wikis Scenario: Edit icon is hidden by default when the section is collapsed Given a user visits a mobile wiki page with Parsoid enabled When the page is loaded and sections are collapsed Then the edit icon should be hidden by default Scenario: Edit icon is visible when the section is expanded Given a user visits a mobile wiki page with Parsoid enabled When the user expands a collapsed section Then the edit icon should become visible
Test Steps
Test Case 1: Verify edit icon is hidden by default on collapsed sections (Parsoid)
- Emulate a mobile device in the browser.
- Visit https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Dog&useparsoid=1.
- Observe the collapsed section headings.
- Verify that the edit icon is hidden by default.
- AC1: The edit icon is hidden when sections are collapsed.
Test Case 2: Verify edit icon is visible when section is expanded (Parsoid)
- On the same page (https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Dog&useparsoid=1), click to expand any collapsed section.
- Verify that the edit icon becomes visible after expansion.
- AC2: The edit icon is visible when the section is expanded.
Test Case 3: Compare behavior with the legacy parser
- Emulate a mobile device in the browser.
- Visit https://en.m.wikipedia.beta.wmflabs.org/w/index.php?title=Dog&useparsoid=0.
- Observe the collapsed section headings.
- Verify that the edit icon is hidden by default, consistent with the behavior tested in Test Case 1.
- Expand any section and confirm that the edit icon becomes visible, consistent with Test Case 2.
- AC3: Parsoid and legacy parser behavior match regarding the visibility of the edit icon.
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T384408#10531044 |
2 | ✅ | T384408#10531044 |
3 | ✅ | T384408#10531044 |
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):