aa
This commit is contained in:
parent
b1fbdca1ba
commit
a273570f29
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue