Merge branch 'lifeiscontent-feat/playwright' into main

This commit is contained in:
草鞋没号 committed 2023-02-14 19:40:13 +08:00
commit 891751624a
5 files changed
+67 -1

No files matched your search

+8
View File
@@ -0,0 +1,8 @@
import { test, expect, _electron as electron } from "@playwright/test";
test("homepage has title and links to intro page", async () => {
const app = await electron.launch({ args: [".", "--no-sandbox"] });
const page = await app.firstWindow();
expect(await page.title()).toBe("Electron + Vite + React");
await page.screenshot({ path: "e2e/screenshots/example.png" });
});
Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB