import { expect, test } from "@playwright/test"

test.describe("auth smoke", () => {
  test("login page renders required controls", async ({ page }) => {
    await page.goto("/login")
    await expect(page).toHaveTitle(/Login/i)
    await expect(page.getByLabel("Email")).toBeVisible()
    await expect(page.getByLabel("Password")).toBeVisible()
    await expect(page.getByRole("button", { name: "Sign In with Email" })).toBeVisible()
  })

  test("register page renders required controls", async ({ page }) => {
    await page.goto("/register")
    await expect(page).toHaveTitle(/Register/i)
    await expect(page.getByLabel("Full Name")).toBeVisible()
    await expect(page.getByLabel("Email")).toBeVisible()
    await expect(page.getByLabel("Password")).toBeVisible()
    await expect(page.getByRole("button", { name: "Create Account" })).toBeVisible()
  })
})
