mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
wip: electron 11.4.3
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
8e3d50fac2
commit
2a02a85e5b
4 files changed
+46
-47
No files matched your search
@@ -49,8 +49,12 @@ export function describeIf(condition: boolean) {
|
||||
return condition ? describe : describe.skip;
|
||||
}
|
||||
|
||||
export function setup(): Application {
|
||||
return new Application({
|
||||
export const keys = {
|
||||
backspace: "\uE003"
|
||||
};
|
||||
|
||||
export async function appStart() {
|
||||
const app = new Application({
|
||||
path: AppPaths[process.platform], // path to electron app
|
||||
args: [],
|
||||
startTimeout: 30000,
|
||||
@@ -59,22 +63,17 @@ export function setup(): Application {
|
||||
CICD: "true"
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
export const keys = {
|
||||
backspace: "\uE003"
|
||||
};
|
||||
console.log("APP", app);
|
||||
|
||||
export async function appStart() {
|
||||
const app = setup();
|
||||
const startedApp = await app.start();
|
||||
|
||||
await app.start();
|
||||
// Wait for splash screen to be closed
|
||||
while (await app.client.getWindowCount() > 1);
|
||||
await app.client.windowByIndex(0);
|
||||
await app.client.waitUntilWindowLoaded();
|
||||
while (await startedApp.client.getWindowCount() > 1);
|
||||
await startedApp.client.windowByIndex(0);
|
||||
await startedApp.client.waitUntilWindowLoaded();
|
||||
|
||||
return app;
|
||||
return startedApp;
|
||||
}
|
||||
|
||||
export async function clickWhatsNew(app: Application) {
|
||||
|
||||
Reference in new issue
Block a user