JUNOHUB-test/tests/e2e/smoke.spec.ts
2026-04-11 21:13:20 +05:00

16 lines
535 B
TypeScript

import { test, expect } from "@playwright/test"
/**
* Smoke checks against a running app (`pnpm dev` + PLAYWRIGHT_BASE_URL).
* Skipped by default so `pnpm test` / CI unit runs stay self-contained.
*/
test.describe("public smoke", () => {
test.skip(!process.env.PLAYWRIGHT_BASE_URL, "set PLAYWRIGHT_BASE_URL to run E2E")
test("login page responds", async ({ page }) => {
const res = await page.goto("/login")
expect(res?.ok()).toBeTruthy()
await expect(page.locator("body")).toBeVisible()
})
})