Abgabe Max Kupper

This commit is contained in:
2025-12-05 09:15:21 +01:00
parent 00bcb5afec
commit 73e13e91db
24 changed files with 65133 additions and 0 deletions
@@ -0,0 +1,27 @@
const { test, expect, _electron: electron } = require("@playwright/test");
const path = require("path");
test("Dialog öffnen & schließen", async () => {
const app = await electron.launch({
args: [path.join(__dirname, "../main.js")]
});
const win = await app.firstWindow();
// Home-Button sicherheitshalber klicken
await win.click('button:has-text("Home")');
// Dialog öffnen
await win.click('button:has-text("Dialog öffnen")');
// Dialog sichtbar
await expect(win.locator('text=Beispiel-Dialog')).toBeVisible();
// OK Button
await win.click('button:has-text("OK")');
// Dialog sollte verschwinden
await expect(win.locator('text=Beispiel-Dialog')).toHaveCount(0);
await app.close();
});