Files
2025-12-05 09:15:21 +01:00

17 lines
462 B
JavaScript

const { test, expect, _electron: electron } = require('@playwright/test');
const path = require("path");
test("Electron startet und zeigt Fenster", async () => {
const electronApp = await electron.launch({
args: [path.join(__dirname, "../main.js")]
});
const window = await electronApp.firstWindow();
// Titel prüfen
const title = await window.title();
expect(title).not.toBe(""); // oder dein eigener Titel
await electronApp.close();
});