This commit is contained in:
Core 2022-02-01 10:29:04 +00:00
parent b1fbdca1ba
commit a273570f29
No known key found for this signature in database
GPG key ID: FE9BF1B547F8F3C6

View file

@ -1,12 +1,16 @@
import { _electron as electron } from "playwright";
import { test, expect } from "@playwright/test";
import { join } from "path";
import * as fs from "fs";
test("Launch electron app", async () => {
const aa = fs.readdirSync(join(__dirname, "../../"))
console.log(aa)
console.log(__dirname)
const electronApp = await electron.launch({ args: [join(__dirname, "../../build")] });
const electronApp = await electron.launch({ args: [join(__dirname, "../main")] });
const appPath = await electronApp.evaluate(async ({ app }) => {
// This runs in the main Electron process, parameter here is always