提交记录修改ui/scripts/initialization-smoke.mjs+5 −0看文件
| @@ -52,6 +52,11 @@ for (const [platform, system] of [["darwin", "macos"], ["windows", "windows-11"] | ||
| 52 | 52 | await storage.getByText("这是 Cage 的环境数据目录。更新、重装或卸载应用会保留这里的数据;请勿手动删除。").waitFor(); |
| 53 | 53 | assert.equal(await storage.getByText("当前环境目录", { exact: true }).count(), 0); |
| 54 | 54 | assert.equal(await storage.getByText("新存储位置", { exact: true }).count(), 0); |
| 55 | 新增: await page.locator(".initialization-content").evaluate(async element => { | |
| 56 | 新增: await Promise.all(element.getAnimations({ subtree: true }) | |
| 57 | 新增: .filter(animation => animation.animationName === "initialization-enter") | |
| 58 | 新增: .map(animation => animation.finished)); | |
| 59 | 新增: }); | |
| 55 | 60 | const before = await storage.boundingBox(); |
| 56 | 61 | await picker.click(); |
| 57 | 62 | const option = page.getByRole("option", { name: "自动匹配本机系统版本", exact: true }); |

