Skip to content

test: the volume title precedes the cover, not as its sibling (OP#1466) - #4

Merged
line-o merged 1 commit into
mainfrom
test/volume-cover-heading
Oct 27, 2026
Merged

line-o merged 1 commit into
mainfrom
test/volume-cover-heading

Conversation

@line-o

@line-o line-o commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Fixes the one failing test in the full suite (OP#1466): volume-cover.cy.js › "puts the volume title in an h1 before the image".

The assertion ported from hsg-shell, .prev("h1"), expected the h1 to be the cover image's immediate sibling. In the app the h1 sits in header.hsg-frus__landing-header and the cover in div.hsg-frus__cover-frame, so it never matched, although the page is right: the title comes first. The test now checks the h1's text and that the cover follows it in document order (compareDocumentPosition).

Local results (:8091):

  • the spec: 4/4 passing;
  • with the order check inverted: the test fails, so it does assert the order;
  • full suite on the identical tree before the fix: 864 tests, 861 passing, 2 pending, this 1 failing.

🤖 Generated with Claude Code

The ported hsg-shell assertion .prev("h1") expected the h1 right before
the image. In the app the h1 sits in the landing header and the cover
in its own frame, so it never matched. The test now checks the h1's
text and that the cover follows it in document order.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@line-o
line-o merged commit fa82396 into main Oct 27, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant