add plan to toggle test
This commit is contained in:
parent
8a7baaaa48
commit
d1651b4a2d
1 changed files with 13 additions and 1 deletions
|
|
@ -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(() => {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue