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:
@@ -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'", () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user