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 5c840a8af5 Fix Input not working when not provided with an AsyncValidator
- Added logging by default for non-CI environments running integration
  tests

- Increasing the timeout on integration tests so that spectron is more
  likely to error out instead (should help with debugging tests)

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2021-05-07 16:14:54 -04:00

27 lines
719 B
TypeScript

import { Application } from "spectron";
import * as utils from "../helpers/utils";
jest.setTimeout(60 * 1000 * 10); // 10m
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");
});
});
});