Browser tests and README: tops found by title, addresses named from titles
The browser tests find sections by their titles from the library root and open the starter trees at /doc/<name made from the title>; a renamed document's address follows its title. The README's addresses, text-format targets and /api/docs say the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
1 parent
44d2e437eb
commit
6c97772ec9
11 files changed
+68
-66
No files matched your search
+1
-1
@@ -45,7 +45,7 @@ test.describe.configure({ mode: "serial" });
|
||||
test.beforeAll(async ({ request }) => {
|
||||
// A link on "simple ratio" (to the mock Wikipedia's Octopus), once.
|
||||
const s = await (await request.get("/api/tree")).json();
|
||||
const doc = s.nodes[s.root].children.find((c: string) => s.nodes[c].slug === "tuning-and-temperament");
|
||||
const doc = s.nodes[s.root].children.find((c: string) => s.nodes[c].title === "Tuning and temperament");
|
||||
const sec = s.nodes[doc].children.find((c: string) => s.nodes[c].title === "Why some intervals sound smooth");
|
||||
if (s.nodes[sec].children.some((c: string) => s.nodes[c].ref)) return;
|
||||
const res = await request.post("/api/ops", { data: { author: "mouse", message: "A link for the mouse tests", ops: [{ op: "create", parent: sec, kind: "note", quote: "simple ratio", ref: { kind: "wiki", title: "Octopus", lang: "en" } }] } });
|
||||
|
||||
Reference in new issue
Block a user