test: wait for workspace readiness during cache rotation
Cross-platform packages / Validate source (push) Canceled after 0s
Cross-platform packages / Authorize desktop packaging (push) Canceled after 0s
Cross-platform packages / linux arm64 (push) Canceled after 0s
Cross-platform packages / macos arm64 (push) Canceled after 0s
Cross-platform packages / windows arm64 (push) Canceled after 0s
Cross-platform packages / linux x64 (push) Canceled after 0s
Cross-platform packages / macos x64 (push) Canceled after 0s
Cross-platform packages / windows x64 (push) Canceled after 0s
Cross-platform packages / Publish GitHub and OSS release (push) Canceled after 0s

This commit is contained in:
mesalogo
2026-10-04 12:42:53 +08:00
parent 362fe50402
commit ff61da28a0
2 changed files with 6 additions and 1 deletions
@@ -76,3 +76,8 @@ Electron 布局测试更新为真实标题“模型与运行限制”,截图
保留保存值、再次打开恢复、布局及溢出断言。
1200 条活动历史测试会实际显示至 1000 行,专用超时从 30 秒改为 60 秒;
不减少数据、不移除分页、清空总数或离页裁剪断言,等待下一次 CI 验证。
`362fe50` 的 CI `37175597089`:上述三个测试均通过,5955 通过、59 跳过;
另一个工作区 KeepAlive 测试在默认一秒内未找到魔法笔记标题。
仅将该轮换测试的异步标题等待设为五秒,保留聊天 DOM 身份、旧工作区淘汰
及缓存数量断言。CI 观察命令曾出现 GitHub API EOF,最终失败以工作流结果为准。
+1 -1
View File
@@ -3310,7 +3310,7 @@ describe("App", () => {
for (const label of ["魔法笔记", "知识库", "监督者", "运行记录"]) {
fireEvent.click(await screen.findByRole("button", { name: label }));
await screen.findByRole("heading", { name: label });
await screen.findByRole("heading", { name: label }, { timeout: 5_000 });
}
expect(document.querySelector('[data-route="chat"]')).toBe(chatRoute);