* feat: add Playwright testing infrastructure - Add @playwright/test dependency - Add playwright.config.ts with Chromium setup - Add test scripts (test, test:ui, test:headed) - Add hello world test to verify setup works This is the foundation for adding comprehensive E2E tests. Tests run against the Vite dev server on port 1420. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * ci: add E2E test workflow Runs Playwright tests on pull requests using Chromium. Uploads test artifacts on failure. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix: rename e2e to playwright, fix CI test - Rename workflow from "E2E Tests" to "Playwright" - Rename scripts from test:e2e to test:playwright - Fix test to not require Tauri APIs (just check server responds) - Run prettier Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * fix --------- Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> Co-authored-by: CJ Pais <cj@cjpais.com>
18 lines
535 B
TypeScript
18 lines
535 B
TypeScript
import { test, expect } from "@playwright/test";
|
|
|
|
test.describe("Handy App", () => {
|
|
test("dev server responds", async ({ page }) => {
|
|
// Just verify the dev server is running and responds
|
|
const response = await page.goto("/");
|
|
expect(response?.status()).toBe(200);
|
|
});
|
|
|
|
test("page has html structure", async ({ page }) => {
|
|
await page.goto("/");
|
|
|
|
// Verify basic HTML structure exists
|
|
const html = await page.content();
|
|
expect(html).toContain("<html");
|
|
expect(html).toContain("<body");
|
|
});
|
|
});
|