Files
xiaoxia-saas/apps/web/e2e/auth-guard.spec.ts
T
自动化测试Agent b745725623
Deploy / Build Production Runtime Images (push) Has been skipped
Deploy / Deploy Production (push) Has been skipped
Deploy / Production Browser E2E (push) Has been skipped
Deploy / Staging E2E Tests (push) Failing after 132h14m55s
Deploy / Deploy Staging (push) Failing after 132h16m24s
CI/CD Pipeline / Frontend Lint (push) Failing after 132h16m55s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 132h17m20s
fix(e2e): 修复 auth-guard 和 subscription 测试路由,适配扁平化路由结构
- auth-guard: /projects -> /app/dashboard
- subscription: /subscription -> /app/subscription
2026-07-04 00:37:12 +08:00

9 lines
252 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/);
});
});