=test_update_homework_tests_and_work_log
Some checks failed
CI / build-deploy (push) Has been cancelled

This commit is contained in:
SpecialX
2026-03-19 13:16:49 +08:00
parent eb08c0ab68
commit 99f116cb64
70 changed files with 7470 additions and 20220 deletions

View File

@@ -0,0 +1,20 @@
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()
})
})