Test Workii pls v2
This commit is contained in:
parent
b8138b7a8f
commit
1ed930ad96
4 changed files with 27 additions and 140 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue