diff options
| author | Paul Buetow <paul@buetow.org> | 2026-04-10 10:23:20 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-04-10 10:23:20 +0300 |
| commit | f40fee44e8f256328ca1419863b5441123a1014e (patch) | |
| tree | b3a5eabc0b8ac0801240544392edaadf5a6d8ac4 /integrationtests/integration_test.go | |
| parent | bc45b7af3bc93ccd3e4359d29e93417d0af407e1 (diff) | |
Release v0.1.0v0.1.0
Splash: skip via ?splash=0 on pagination to index; frosted panel and vignette
for readable copy; brighter hint/tag colors. Pagination links only at bottom
of each page. Tests updated for prev href to index.
Made-with: Cursor
Diffstat (limited to 'integrationtests/integration_test.go')
| -rw-r--r-- | integrationtests/integration_test.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/integrationtests/integration_test.go b/integrationtests/integration_test.go index 0ee0183..834d878 100644 --- a/integrationtests/integration_test.go +++ b/integrationtests/integration_test.go @@ -118,6 +118,8 @@ func TestTxtInput(t *testing.T) { // index.html must contain the post text. index := readFile(t, filepath.Join(outputDir, "index.html")) assertContains(t, index, "Hello, Nexus!", "index.html") + assertContains(t, index, "splash-gl-canvas", "index.html splash WebGL canvas") + assertContains(t, index, `href="atom.xml"`, "index.html atom feed link") } // TestMarkdownInput verifies Markdown files are converted to HTML. @@ -282,7 +284,8 @@ func TestPaginationNavLinks(t *testing.T) { } page2 := readFile(t, filepath.Join(outputDir, "page2.html")) - // page2.html should have a prev link (index.html) and no next. + // page2.html should have a prev link to index with splash=0 (keyboard nav has no reliable Referer). + assertContains(t, page2, `href="index.html?splash=0"`, "page2.html prev href skips splash") assertContains(t, page2, "NEWER TRANSMISSIONS", "page2.html prev link") if strings.Contains(page2, "OLDER TRANSMISSIONS") { t.Error("page2.html should not have a next-page link") |
