test: reviewPanelMenu editor/title assertion follows the resourceLangId fix (#71 item 3)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
BenStullsBets
2026-07-02 20:18:34 -07:00
parent d494d90dc7
commit 52f75f5fcb
+1 -1
View File
@@ -126,7 +126,7 @@ suite("Open Cowriting Review Preview (host E2E — menu wiring + clicked-doc res
const items = (pkg().contributes.menus["editor/title"] ?? []) as Array<{ command: string; when?: string }>; const items = (pkg().contributes.menus["editor/title"] ?? []) as Array<{ command: string; when?: string }>;
const entry = items.find((m) => m.command === "cowriting.openReviewPreview"); const entry = items.find((m) => m.command === "cowriting.openReviewPreview");
assert.ok(entry, "editor/title has an openReviewPreview entry"); assert.ok(entry, "editor/title has an openReviewPreview entry");
assert.match(entry!.when ?? "", /editorLangId == markdown/, "gated on markdown"); assert.match(entry!.when ?? "", /resourceLangId == markdown/, "gated on markdown");
}); });
test("the command title reads 'Open Cowriting Review Preview'", () => { test("the command title reads 'Open Cowriting Review Preview'", () => {