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
Sebastian Malton 439f7e33eb Turn on several TSC options
- noUnusedLocals
- noImplicitReturns
- importsNotUsedAsValues: error

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-17 09:29:23 -04:00

27 lines
708 B
TypeScript

import type { Application } from "spectron";
import * as utils from "../helpers/utils";
jest.setTimeout(60000);
describe("Lens command palette", () => {
let app: Application;
describe("menu", () => {
utils.beforeAllWrapped(async () => {
app = await utils.appStart();
});
utils.afterAllWrapped(async () => {
if (app?.isRunning()) {
await utils.tearDown(app);
}
});
it("opens command dialog from menu", async () => {
await app.electron.ipcRenderer.send("test-menu-item-click", "View", "Command Palette...");
await app.client.waitUntilTextExists(".Select__option", "Preferences: Open");
await app.client.keys("Escape");
});
});
});