From e96205fa3bf125a674715f530c0afc95a13b4cfa Mon Sep 17 00:00:00 2001 From: leemour Date: Sun, 1 Nov 2026 01:56:02 +0100 Subject: [PATCH] test(docs): follow the memo mcp command rename and the larger sidebar The remote Memo guide now documents 'memo mcp revoke' and 'memo mcp serve' (cli-memo 0.131.2); the browser test still looked for the old flags. The tg command reference entry renders 3002 elements since the mail pages joined the sidebar; the ceiling only separates the small entry from the full reference, so it moves from 3000 to 3500, as in #354. Co-Authored-By: Claude Opus 5.5 --- tests/command-reference.spec.ts | 2 +- tests/memo-docs.spec.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/command-reference.spec.ts b/tests/command-reference.spec.ts index 1ea535da..16cfa919 100644 --- a/tests/command-reference.spec.ts +++ b/tests/command-reference.spec.ts @@ -10,7 +10,7 @@ for (const lang of ["en", "ru", "es"]) await expect(page.locator("[data-command-index]")).toBeVisible() await expect(page.locator("main pre")).toHaveCount(1) await expect(page.locator("main pre")).toContainText(`${tool} [`) - expect(await page.evaluate(() => document.querySelectorAll("*").length)).toBeLessThan(3000) + expect(await page.evaluate(() => document.querySelectorAll("*").length)).toBeLessThan(3500) for (const group of ["personal", "bot", "admin", "setup"]) await expect( page.locator(`[data-command-index] a[href="/${lang}/docs/${tool}/commands-${group}"]`), diff --git a/tests/memo-docs.spec.ts b/tests/memo-docs.spec.ts index 3da3dce6..b11c0220 100644 --- a/tests/memo-docs.spec.ts +++ b/tests/memo-docs.spec.ts @@ -36,7 +36,7 @@ for (const lang of ["en", "ru", "es"]) { await remote.press("Enter") await expect(page).toHaveURL(`/${lang}/docs/memo/remote`) await expect(page.locator("main h1")).toBeVisible() - await expect(page.locator("main")).toContainText("memo mcp --revoke --json") + await expect(page.locator("main")).toContainText("memo mcp revoke --json") expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth + 1)).toBe(true) const scan = await new AxeBuilder({ page }) .include("main") @@ -46,6 +46,6 @@ for (const lang of ["en", "ru", "es"]) { const prefix = lang === "en" ? "" : `${lang}/` const markdown = await request.get(`/llms.mdx/docs/${prefix}memo/remote/content.md`) expect(markdown.ok()).toBe(true) - expect(await markdown.text()).toContain("memo mcp --http --public-url https://device.example") + expect(await markdown.text()).toContain("memo mcp serve --http --public-url https://device.example") }) }