From a9e769fde9fae55a9abc8a8c607a65cd38294942 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 18 Sep 2026 12:10:20 +0000 Subject: [PATCH] test: refresh static docs expectations Co-authored-by: wangcham <95991795+wangcham@users.noreply.github.com> --- tests/fumapress-static-build.test.mjs | 5 ++++- tests/locale-static-build.test.mjs | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/fumapress-static-build.test.mjs b/tests/fumapress-static-build.test.mjs index 12521b4fd..4558ca102 100644 --- a/tests/fumapress-static-build.test.mjs +++ b/tests/fumapress-static-build.test.mjs @@ -212,6 +212,9 @@ test("canonical sitemap routes match the legacy Mintlify directory structure", a const locales = ["en", "zh", "ja"]; const hreflangByLocale = { en: "en", zh: "zh-CN", ja: "ja" }; const zhOnlyRoutes = [ + "articles/langbot-telegram-sandbox-agent", + "articles/langbot-wechat-official-account", + "articles/langbot-wecom-customer-service-knowledge-base", "develop/adapter/discord/README", "develop/adapter/discord/api_reference", "develop/adapter/discord/design", @@ -348,7 +351,7 @@ test("the Chinese quick-start navigation keeps the incumbent troubleshooting pag assert.doesNotMatch(sidebar, /href="\/docs\/zh\/develop\/adapter\/discord\/troubleshooting"/); }); -test("the exact 14 zh-only sources publish no fallback en or ja routes", async () => { +test("the exact 17 zh-only sources publish no fallback en or ja routes", async () => { const documents = await collectMdxDocuments(root); const byLocale = Object.fromEntries(locales.map((locale) => [ locale, diff --git a/tests/locale-static-build.test.mjs b/tests/locale-static-build.test.mjs index 96cb1900d..3cd370884 100644 --- a/tests/locale-static-build.test.mjs +++ b/tests/locale-static-build.test.mjs @@ -35,6 +35,6 @@ test("every localized HTML payload includes the preference client provider", asy } } for (const locale of ["en", "zh", "ja"]) await visit(path.join(root, locale)); - // 482 canonical content pages plus one framework 404 page per locale. - assert.equal(count, 485); + // 485 canonical content pages plus one framework 404 page per locale. + assert.equal(count, 488); });