#86: replace lnwSeriesFixture with real split-slug page text
The a-will-eternal fixture carried a hand-written cross-series anchor (overgeared-chapter-9999) that no real series page produces. Replace it with text trimmed from a real, wholly-fetched all-jobs-and-classes-i-just-wanted-one-skill-not-them-all page (2026-08-11, ~307 KB decoded): chapter anchors under both Chapter Slugs (1-99 at ...-not, 100-423 at ...-not-them-all, page order, boundary numbers and max 423), the wpd-threads marker exactly once, and after it a real wpdiscuz comment block from the-sword-illuminates-the-great-wilderness (the pinned page serves zero comments; same Site, same theme) carrying the one composed element - a bare <a href> to a real overgeared chapter (2059, HTTP 200). Scan expectation moves 1317 -> 423, the no-trailing-slash and challenge cases move to the new novel, lnwCoverFixture moves to the new novel's real og:image, and the poller's cover-fill case follows. sites.go and fetch.go are byte-for-byte unchanged.
This commit is contained in:
@@ -1010,10 +1010,10 @@ func TestRunOnceFillsBlankCoverFromSeriesPage(t *testing.T) {
|
||||
},
|
||||
{
|
||||
name: "lightnovelworld novel",
|
||||
key: "lightnovelworld:a-will-eternal", site: "lightnovelworld",
|
||||
seriesID: "a-will-eternal", seriesURL: "https://lightnovelworld.net/novel/a-will-eternal/",
|
||||
key: "lightnovelworld:all-jobs-and-classes-i-just-wanted-one-skill-not-them-all", site: "lightnovelworld",
|
||||
seriesID: "all-jobs-and-classes-i-just-wanted-one-skill-not-them-all", seriesURL: "https://lightnovelworld.net/novel/all-jobs-and-classes-i-just-wanted-one-skill-not-them-all/",
|
||||
kind: store.KindNovel, body: lnwSeriesFixture + lnwCoverFixture,
|
||||
wantCover: "https://lightnovelworld.net/wp-content/uploads/2026/03/a-will-eternal-1.webp",
|
||||
wantCover: "https://i1.wp.com/lightnovelworld.net/wp-content/uploads/2025/10/all-jobs-and-classes-i-just-wanted-one-skill-not-them-all.jpg",
|
||||
},
|
||||
{
|
||||
name: "kagane manga",
|
||||
|
||||
Reference in New Issue
Block a user