Browser tests: nodes instead of documents; addresses by node id; /linkhere and /linkall

menu.spec.ts becomes nodes.spec.ts: standing on the library root, /n/<id> addresses through a
reload, Back and Forward (and an old /doc/ address), the jump box, a file imported into a node two
levels down with a link relative to its top, exported back the same and copied just after itself,
Move under… by key and by the menu (never under itself; the root offered first), history's f and r
on the node the reader is on, the offline round trip, the node routes over HTTP, and panes and
phone width.

The other specs open a tree by its titles (helpers openAt, openPage, visit: /n/<id>, hoisted in the
column as /doc/ was), make top-level sections from the library page instead of /new, scan with
/linkhere (and check its scope against /linkall's), and expect a section's head on every pane but
the first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
thalladaandClaude Opus 5.5 committed 2026-11-17 01:49:22 -05:00
1 parent bed47c0c7a
commit c4d6856649
17 files changed
+584 -490

No files matched your search

+2 -3
View File
@@ -4,7 +4,7 @@
* new tab, and Esc stops a run without keeping anything it did.
*/
import { expect, test, type Page } from "@playwright/test";
import { command, idle, jump, keys, settle, state } from "./helpers";
import { command, idle, jump, keys, openPage, settle, state } from "./helpers";
async function open(page: Page) {
@@ -13,8 +13,7 @@ async function open(page: Page) {
(globalThis as any).__opened = [];
window.open = ((url: string) => ((globalThis as any).__opened.push(String(url)), null)) as typeof window.open;
});
await page.goto("/doc/infinispand");
await page.waitForSelector("article");
await openPage(page, "Infinispand");
}
test.describe.configure({ mode: "serial" });