Abgabe Max Kupper
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
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();
|
||||
});
|
||||
Reference in New Issue
Block a user