Abgabe Max Kupper
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
const { test, expect, _electron: electron } = require("@playwright/test");
|
||||
const path = require("path");
|
||||
|
||||
test("Navigation: Home → Settings", async () => {
|
||||
const app = await electron.launch({
|
||||
args: [path.join(__dirname, "../main.js")]
|
||||
});
|
||||
|
||||
const win = await app.firstWindow();
|
||||
|
||||
// Auf Settings klicken
|
||||
await win.click('button:has-text("Settings")');
|
||||
|
||||
// Prüfen dass der Settings-Header sichtbar ist
|
||||
await expect(win.locator("id=settings-title")).toBeVisible();
|
||||
|
||||
// Auf Settings klicken
|
||||
await win.click('button:has-text("home")');
|
||||
|
||||
await app.close();
|
||||
});
|
||||
Reference in New Issue
Block a user