fix: 修复测试套件质量审查问题——act环境、正则匹配、mock排序、超时设置
This commit is contained in:
@@ -65,7 +65,7 @@ describe("Workbench 路由", () => {
|
||||
},
|
||||
{ timeout: 10000 },
|
||||
);
|
||||
});
|
||||
}, 30000);
|
||||
|
||||
test("Workbench 显示返回管理台按钮", async () => {
|
||||
createMockHandler();
|
||||
@@ -75,7 +75,7 @@ describe("Workbench 路由", () => {
|
||||
});
|
||||
|
||||
await screen.findByText("返回管理台", {}, { timeout: 10000 });
|
||||
});
|
||||
}, 30000);
|
||||
|
||||
test("不存在项目显示不可访问", async () => {
|
||||
createMockHandler();
|
||||
@@ -85,7 +85,7 @@ describe("Workbench 路由", () => {
|
||||
});
|
||||
|
||||
await screen.findByText("项目不存在或不可访问", {}, { timeout: 10000 });
|
||||
});
|
||||
}, 30000);
|
||||
|
||||
test("archived 项目显示不可访问", async () => {
|
||||
createMockHandler({ status: "archived" });
|
||||
@@ -95,7 +95,7 @@ describe("Workbench 路由", () => {
|
||||
});
|
||||
|
||||
await screen.findByText("项目不存在或不可访问", {}, { timeout: 10000 });
|
||||
});
|
||||
}, 30000);
|
||||
|
||||
test("Workbench 显示聊天室菜单", async () => {
|
||||
createMockHandler();
|
||||
@@ -105,7 +105,7 @@ describe("Workbench 路由", () => {
|
||||
});
|
||||
|
||||
await screen.findByText("聊天室", {}, { timeout: 10000 });
|
||||
});
|
||||
}, 30000);
|
||||
|
||||
test("Workbench 收集箱路由可达", async () => {
|
||||
createMockHandler();
|
||||
@@ -115,7 +115,7 @@ describe("Workbench 路由", () => {
|
||||
});
|
||||
|
||||
await screen.findByText("新增素材", {}, { timeout: 10000 });
|
||||
});
|
||||
}, 30000);
|
||||
|
||||
test("Workbench 显示收集箱菜单", async () => {
|
||||
createMockHandler();
|
||||
@@ -125,5 +125,5 @@ describe("Workbench 路由", () => {
|
||||
});
|
||||
|
||||
await screen.findByText("收集箱", {}, { timeout: 10000 });
|
||||
});
|
||||
}, 30000);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user