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 81ed697313 add debug statemets to integration tests
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-02-05 16:56:30 -05:00

31 lines
868 B
TypeScript

import { Application } from "spectron";
import { send, waitUntilTextExists } from "../helpers/client";
import * as utils from "../helpers/utils";
jest.setTimeout(60000);
describe("Lens command palette", () => {
let app: Application;
beforeEach(() => {
console.debug(`startig: ${expect.getState().currentTestName}`);
});
describe("menu", () => {
beforeAll(async () => app = await utils.appStart(), 20000);
afterAll(async () => {
if (app?.isRunning()) {
await utils.tearDown(app);
}
});
it("opens command dialog from menu", async () => {
await utils.clickWhatsNew(app);
await send(app.electron.ipcRenderer, "test-menu-item-click", "View", "Command Palette...");
await waitUntilTextExists(app.client, ".Select__option", "Preferences: Open");
await app.client.keys("Escape");
});
});
});