Files
xiaoxia-saas/apps/web/e2e/auth-guard.spec.ts
T
CI Bot 330eb983d8 style: 引入Prettier后首次全量格式化(前端 + Python脚本)
- apps/web/: prettier --write . 全量格式化(98个文件)
- scripts/ci/auto_fix_formatting.py: black 格式化
纯格式改动,无业务逻辑变更
2026-07-18 17:46:20 +08:00

9 lines
247 B
TypeScript
Executable File

import { expect, test } from "@playwright/test"
test.describe("App route guard", () => {
test("redirects anonymous users to login", async ({ page }) => {
await page.goto("/app/dashboard")
await expect(page).toHaveURL(/\/login/)
})
})