Skip to content

Commit 2d5ea03

Browse files
committed
test: cover Claude Teams locale availability
1 parent 9bac86a commit 2d5ea03

2 files changed

Lines changed: 17 additions & 3 deletions

File tree

web/tests/agent-page-variants.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,11 @@ describe("agent page variants", () => {
394394
});
395395

396396
test("limits English-only blog variants to their canonical routes", () => {
397-
for (const path of ["/blog/cmux-omo", "/blog/gpl"]) {
397+
for (const path of [
398+
"/blog/cmux-claude-teams",
399+
"/blog/cmux-omo",
400+
"/blog/gpl",
401+
]) {
398402
expect(resolveAgentPageVariant(`${path}.md`)).not.toBeNull();
399403
expect(resolveAgentPageVariant(`/ja${path}.md`)).toBeNull();
400404
expect(resolveAgentPageVariant(`/de${path}.txt`)).toBeNull();

web/tests/seo.test.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ describe("SEO metadata helpers", () => {
4242

4343
expect(englishSlugs).toContain("cmux-omo");
4444
expect(englishSlugs).toContain("gpl");
45+
expect(englishSlugs).toContain("cmux-claude-teams");
4546
expect(japaneseSlugs).not.toContain("cmux-omo");
4647
expect(japaneseSlugs).not.toContain("gpl");
48+
expect(japaneseSlugs).not.toContain("cmux-claude-teams");
4749
});
4850

4951
test("keeps canonical URLs locale-aware", () => {
@@ -763,7 +765,11 @@ describe("SEO middleware", () => {
763765
});
764766

765767
test("canonicalizes English-only blog posts", () => {
766-
for (const canonicalPath of ["/blog/cmux-omo", "/blog/gpl"]) {
768+
for (const canonicalPath of [
769+
"/blog/cmux-claude-teams",
770+
"/blog/cmux-omo",
771+
"/blog/gpl",
772+
]) {
767773
const localized = middleware(
768774
requestFor(`/ja${canonicalPath}`, { "accept-language": "ja" }),
769775
);
@@ -786,9 +792,13 @@ describe("SEO middleware", () => {
786792
const urls = sitemap()
787793
.map((entry) => entry.url)
788794
.filter(
789-
(url) => url.endsWith("/blog/cmux-omo") || url.endsWith("/blog/gpl"),
795+
(url) =>
796+
url.endsWith("/blog/cmux-claude-teams") ||
797+
url.endsWith("/blog/cmux-omo") ||
798+
url.endsWith("/blog/gpl"),
790799
);
791800
expect(urls).toEqual([
801+
"https://cmux.com/blog/cmux-claude-teams",
792802
"https://cmux.com/blog/cmux-omo",
793803
"https://cmux.com/blog/gpl",
794804
]);

0 commit comments

Comments
 (0)