1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Adapt more integration tests to recent changes

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
This commit is contained in:
Janne Savolainen 2022-10-21 13:21:27 +03:00
parent d743380012
commit f4fc38b161
No known key found for this signature in database
GPG Key ID: 8C6CFB2FFFE8F68A

View File

@ -10,7 +10,7 @@ describe("Lens command palette", () => {
let window: Page; let window: Page;
let cleanup: undefined | (() => Promise<void>); let cleanup: undefined | (() => Promise<void>);
let app: ElectronApplication; let app: ElectronApplication;
beforeEach(async () => { beforeEach(async () => {
({ window, cleanup, app } = await utils.start()); ({ window, cleanup, app } = await utils.start());
await utils.clickWelcomeButton(window); await utils.clickWelcomeButton(window);
@ -25,7 +25,7 @@ describe("Lens command palette", () => {
await app.evaluate(async ({ app }) => { await app.evaluate(async ({ app }) => {
await app.applicationMenu await app.applicationMenu
?.getMenuItemById("view") ?.getMenuItemById("view")
?.submenu?.getMenuItemById("command-palette") ?.submenu?.getMenuItemById("open-command-palette")
?.click(); ?.click();
}); });
await window.waitForSelector(".Select__option >> text=Hotbar: Switch"); await window.waitForSelector(".Select__option >> text=Hotbar: Switch");