add plan to toggle test

This commit is contained in:
Dallin Romney 2025-07-03 20:47:01 -07:00
parent 8a7baaaa48
commit d1651b4a2d

View file

@ -27,7 +27,19 @@ test("should be able to toggle modes", async () => {
);
});
// Check that it switched to Agent mode
// Check that it switched to Plan mode
await getElementByText("Plan");
act(() => {
document.dispatchEvent(
new KeyboardEvent("keydown", {
key: ".",
metaKey: true, // cmd key on Mac
}),
);
});
// Check that it switched to Plan mode
await getElementByText("Agent");
act(() => {