feat: implement TASK-WP1-04 admin security

This commit is contained in:
suyx
2026-07-28 18:32:50 +08:00
parent 66fe3b763a
commit 03f1509de7
29 changed files with 2344 additions and 40 deletions
+1 -1
View File
@@ -35,6 +35,6 @@ test("TDD-WP1-AUTH-003 keeps registration and login as separate keyboard entries
await page.keyboard.press("ArrowLeft");
await expect(loginTab).toBeFocused();
await expect(page.getByRole("textbox", { name: "邀请码" })).toHaveCount(0);
await expect(page.getByRole("link", { name: "管理员登录" })).toHaveAttribute("href", "/admin");
await expect(page.getByRole("link", { name: "管理员登录" })).toHaveAttribute("href", "/admin/login");
await expect(page.getByText("测试数据仅保存在本机,不自动备份,也不会迁移到正式系统。")).toBeVisible();
});