Steps to replicate the issue (include links if applicable):
- Compare https://en.m.wikivoyage.org/wiki/Amparo?useparsoid=0 with https://en.m.wikivoyage.org/wiki/Amparo?useparsoid=1 - a bottom margin should apply in both on the h2
What happens?:
No bottom margin for h2s - wrong selector. Nothing matches mw-parser-output > section > section > .mw-heading2 selector.
What should have happened instead?:
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Requirement
Ensure that the correct bottom margin is applied to <h2> elements in Parsoid-rendered pages. Currently, no bottom margin is being applied due to a mismatched selector. The margin should appear on both Parsoid and non-Parsoid pages.
BDD
Feature: Bottom Margin for h2 Elements in Parsoid Scenario: Correct bottom margin applied to h2 elements in Parsoid Given the user visits a Parsoid-rendered page When the page is loaded Then the bottom margin should be applied to all `<h2>` elements And the same margin should be visible in non-Parsoid pages
Test Steps
Test Case 1: Verify Bottom Margin for h2 in Parsoid and Non-Parsoid Pages
- Visit this Parsoid page and compare it with this non-Parsoid page.
- AC1: Confirm that a bottom margin is applied to <h2> elements on both the Parsoid and non-Parsoid pages.
QA Results - Beta
AC | Status | Details |
---|---|---|
1 | ✅ | T375822#10203608 |
QA Results - Prod
AC | Status | Details |
---|---|---|
1 | ✅ | T375822#10203617 |