From 29af4090455bb899b0902a820c872aad23ffdbf8 Mon Sep 17 00:00:00 2001 From: mesalogo Date: Sun, 4 Oct 2026 23:21:07 +0800 Subject: [PATCH] test: align review entry and await sidebar resize transitions --- docs/development/release-preparation-0.15.11.md | 9 +++++++++ src/renderer/src/App.test.tsx | 1 + tests/support/overlay-paths-main.ts | 4 +++- 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/development/release-preparation-0.15.11.md b/docs/development/release-preparation-0.15.11.md index 37fad92c..e8cc2b08 100644 --- a/docs/development/release-preparation-0.15.11.md +++ b/docs/development/release-preparation-0.15.11.md @@ -70,3 +70,12 @@ Agent CI `37202987727` 通过。失败为监督旧 inline-error 断言、 通过后创建新不可变双版本标签,跟进原生打包和独立发布; 不下载、哈希或启动 Desktop 安装包,不发布宣传文章。 双语 FEATURES 与发布说明同步权限、迁移、配套升级和验收边界。 + +### 精确候选首轮 CI + +`245e296a`:Desktop `37211139053` 为 6038 通过、56 跳过、2 失败, +Agent `37211139043` 通过;生产构建未执行。 +App 旧测试仍假定回顾表单默认展开,改为点击“新回顾”后保留原按钮断言。 +覆盖层堆栈通过仅编译测试 driver(不运行应用或生产构建)定位到窄转宽后的 +侧栏按钮,先前 Escape 等待已通过;补齐宽高与 CSS 过渡结束后再原生点击。 +保留 hit-test、侧栏 inert 和后续归档/弹层操作断言,等待下一轮 CI 验证。 diff --git a/src/renderer/src/App.test.tsx b/src/renderer/src/App.test.tsx index f02946fc..84082372 100644 --- a/src/renderer/src/App.test.tsx +++ b/src/renderer/src/App.test.tsx @@ -14092,6 +14092,7 @@ describe("App", () => { expect( await screen.findByRole("tab", { name: "工作回顾" }), ).toBeInTheDocument(); + fireEvent.click(screen.getByRole("button", { name: "新回顾" })); expect( screen.getByRole("button", { name: "回顾" }), ).toBeInTheDocument(); diff --git a/tests/support/overlay-paths-main.ts b/tests/support/overlay-paths-main.ts index d95a6a54..2aa478cf 100644 --- a/tests/support/overlay-paths-main.ts +++ b/tests/support/overlay-paths-main.ts @@ -259,7 +259,9 @@ app.whenReady().then(async () => { await key('Escape') await wait('document.querySelector(".sidebar").inert') win.setContentSize(1280, 800) - await wait('innerWidth === 1280') + await wait('innerWidth === 1280 && innerHeight === 800') + await settle() + await js('Promise.all(document.getAnimations().filter(a => a instanceof CSSTransition).map(a => a.finished.catch(() => {})))') await click('.sidebar-toggle') await wait('!document.querySelector(".sidebar").inert') await click('.project-switcher__trigger')