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
+2
-2
@@ -19,7 +19,7 @@ const paneTitles = async (page: Page) => (await panes(page)).map((p) => p.title)
|
||||
const nodeId = (page: Page, title: string) => page.evaluate((t) => (Object.values((globalThis as any).__ie.snap.nodes) as any[]).find((n) => n.title === t).id as string, title);
|
||||
|
||||
async function open(page: Page) {
|
||||
await page.goto("/doc/infinite-expand");
|
||||
await page.goto("/doc/infinispand");
|
||||
await page.waitForSelector(".strip .pane");
|
||||
await page.evaluate(() => document.fonts.ready);
|
||||
// The library pane and the document's; hoisting makes the document the first.
|
||||
@@ -57,7 +57,7 @@ test("the library is the first pane, and a document opens in the next; reload an
|
||||
await page.keyboard.press("Enter");
|
||||
// From the menu a document opens in place of the one open, not beside it.
|
||||
expect(await paneTitles(page)).toEqual(["Library", "Infinispand", "The tides"]);
|
||||
await expect(page).toHaveURL(/\/doc\/tides$/);
|
||||
await expect(page).toHaveURL(/\/doc\/the-tides$/);
|
||||
await page.goBack();
|
||||
await expect.poll(() => paneTitles(page)).toEqual(third);
|
||||
await page.goForward();
|
||||
|
||||
Reference in new issue
Block a user