test: refresh static docs expectations

Co-authored-by: wangcham <[email protected]>
This commit is contained in:
copilot-swe-agent[bot]
2026-09-18 12:10:20 +00:00
committed by GitHub
co-authored by wangcham
parent 57666c1167
commit a9e769fde9
2 changed files with 6 additions and 3 deletions
+4 -1
View File
@@ -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,
+2 -2
View File
@@ -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);
});