1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/integration/__tests__/command-palette.tests.ts
Roman be3bd7937e integration tests: refactoring & fixes
Signed-off-by: Roman <ixrock@gmail.com>
2021-03-09 18:42:40 +02:00

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");
});
});
});