Repository navigation
test: put the link-preview fixture's eyebrow and heading in an hgroup, as #6264 requires - #6306
Merged
Merged
Conversation
… hgroup #6264 names a section only by the heading it opens with, alone or in an opening <hgroup>. LINKS_PAGE's `#stall` section opened with an eyebrow paragraph before its <h2>, so it lost its name and the journey's link preview fell back to the link's own words, "the reconnect stall". The fixture now writes the eyebrow and heading in an <hgroup>, as page-authoring.md teaches, so the section is named "iOS reconnect stall" again and the preview still leaves the eyebrow out of its excerpt. No behavior changes; the test's expectation follows #6264's rule. Closes #6300
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#6264 names a
sectiononly by the heading it opens with, alone or in an opening<hgroup>, and stops naming it by a heading found after an eyebrow. TheLINKS_PAGEfixture's#stallsection opened with<p>offline editing</p>before its<h2>, so under the new rule it had no name, andtest_a_link_into_the_page_previews_where_it_pointssaw the preview fall back to the link's own words, "the reconnect stall". This is what #6264 intended: its description counts 54 real sections that open with an eyebrow and sayspage-authoring.mdalready teaches putting it in an<hgroup>.The fixture now wraps the eyebrow and heading in an
<hgroup>, so the section is named "iOS reconnect stall" again. The test's other check, that the excerpt leaves out what's drawn before the name, still holds with the eyebrow inside the<hgroup>. Product code is unchanged.Verified locally: the journey failed on both
browserandfirefox_browserbefore the change, with the same assertion as the scheduled run, and passes on both after it.test_a_message_s_parts_follow_an_edit_the_card_held_as_news, the other test that usesLINKS_PAGE, also passes.Closes #6300 — automated triage