mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
17 lines
560 B
TypeScript
17 lines
560 B
TypeScript
import { setupAppLifecycle, clickWhatsNew } from "../helpers/utils";
|
|
|
|
jest.setTimeout(60000);
|
|
|
|
describe("Lens command palette", () => {
|
|
const runtime = setupAppLifecycle();
|
|
|
|
describe("menu", () => {
|
|
it("opens command dialog from menu", async () => {
|
|
await clickWhatsNew(runtime.app);
|
|
await runtime.app.electron.ipcRenderer.send("test-menu-item-click", "View", "Command Palette...");
|
|
await runtime.app.client.waitUntilTextExists(".Select__option", "Preferences: Open");
|
|
await runtime.app.client.keys("Escape");
|
|
});
|
|
});
|
|
});
|