fix(e2e): API测试文件增加超时时间到120s,适配登录限流重试等待
Deploy / Deploy Staging (push) Failing after 124h15m26s
CI/CD Pipeline / Frontend Lint (push) Failing after 124h15m36s
CI/CD Pipeline / Validate Code Quality And Tests (push) Failing after 124h15m36s
Deploy / Staging E2E Tests (push) Failing after 1782h50m56s
Deploy / Deploy Production (push) Failing after 1782h51m0s
Deploy / Build Production Runtime Images (push) Failing after 1782h51m2s
Deploy / Production Browser E2E (push) Failing after 1783h22m24s

This commit is contained in:
xiaoxia
2026-07-04 08:38:50 +08:00
parent fb44867a39
commit 84c1e53f2b
3 changed files with 9 additions and 0 deletions
+3
View File
@@ -76,6 +76,9 @@ async function createProject(
}
test.describe("素材库流程", () => {
// 登录限流 10次/60s,测试可能触发限流等待,给足够超时
test.describe.configure({ timeout: 120_000 });
test("创建素材库", async ({ request }) => {
const { headers } = await createAuthedUser(request, "lib-create");
const projectId = await createProject(
+3
View File
@@ -51,6 +51,9 @@ async function loginWithRetry(
}
test.describe("认证流程", () => {
// 登录限流 10次/60s,测试可能触发限流等待,给足够超时
test.describe.configure({ timeout: 120_000 });
// ─── 注册 ────────────────────────────────────────────
test("注册新用户 - 正向", async ({ request }) => {
+3
View File
@@ -61,6 +61,9 @@ async function createAuthedUser(request: any, label: string) {
}
test.describe("项目流程", () => {
// 登录限流 10次/60s,测试可能触发限流等待,给足够超时
test.describe.configure({ timeout: 120_000 });
test("创建项目", async ({ request }) => {
const { headers } = await createAuthedUser(request, "proj-create");
const projectName = `E2E 测试项目 ${Date.now()}`;