mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
tweak integration tests
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
4aa51ae5b2
commit
af8eaf9742
@ -7,10 +7,7 @@ describe("Lens command palette", () => {
|
|||||||
let app: Application;
|
let app: Application;
|
||||||
|
|
||||||
describe("menu", () => {
|
describe("menu", () => {
|
||||||
beforeAll(async () => {
|
beforeAll(async () => app = await utils.appStart(), 20000);
|
||||||
app = await utils.appStart();
|
|
||||||
await utils.clickWhatsNew(app);
|
|
||||||
}, 20000);
|
|
||||||
|
|
||||||
afterAll(async () => {
|
afterAll(async () => {
|
||||||
if (app?.isRunning()) {
|
if (app?.isRunning()) {
|
||||||
@ -19,6 +16,7 @@ describe("Lens command palette", () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("opens command dialog from menu", async () => {
|
it("opens command dialog from menu", async () => {
|
||||||
|
await utils.clickWhatsNew(app);
|
||||||
await app.electron.ipcRenderer.send("test-menu-item-click", "View", "Command Palette...");
|
await app.electron.ipcRenderer.send("test-menu-item-click", "View", "Command Palette...");
|
||||||
await app.client.waitUntilTextExists(".Select__option", "Preferences: Open");
|
await app.client.waitUntilTextExists(".Select__option", "Preferences: Open");
|
||||||
await app.client.keys("Escape");
|
await app.client.keys("Escape");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user