Test Workii pls v2

This commit is contained in:
Core 2022-02-01 10:18:41 +00:00
parent b8138b7a8f
commit 1ed930ad96
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6
4 changed files with 27 additions and 140 deletions

View file

@ -3,7 +3,7 @@ import { test, expect } from "@playwright/test";
import { join } from "path";
test("Launch electron app", async () => {
const electronApp = await electron.launch({ args: [join(__dirname, "../../")] });
const electronApp = await electron.launch({ args: [join(__dirname, "../../build")] });
const appPath = await electronApp.evaluate(async ({ app }) => {
// This runs in the main Electron process, parameter here is always
@ -37,6 +37,8 @@ test("Launch electron app", async () => {
})
console.log(windowState)
expect(windowState.isVisible).toBeTruthy();
expect(windowState.isDevToolsOpened).toBeFalsy();
expect(windowState.isCrashed).toBeFalsy();