mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-10-29 20:05:25 +08:00
test: refresh static docs expectations
Co-authored-by: wangcham <[email protected]>
This commit is contained in:
co-authored by
wangcham
parent
57666c1167
commit
a9e769fde9
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user