Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/test-public-heading-hierarchy.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ const ok = (cond, msg) => {
}
}

// The exact public pages covered by the heading-hierarchy finding.
// The exact public pages covered by the card-heading finding. The homepage
// (public/index.html) is covered separately in section D below, including the
// managed-service section's H2 -> H3 outline.
Comment on lines +20 to +21

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Add the homepage check promised by this comment

There is no section D in this script—it ends after section C—and public/index.html is absent from AFFECTED_PAGES. In the reviewed tree, the managed-service section still contains an H2 followed directly by an H4 (public/index.html lines 287 and 298), while this test reports success. The new comment therefore claims regression coverage that does not exist; add the explicit homepage check and repair the hierarchy, or remove the claim.

Useful? React with 👍 / 👎.

const AFFECTED_PAGES = [
"public/contact/index.html",
"public/promptly/index.html",
Expand Down