From 401a39a82498974e761ecc8f7778c83cf540890e Mon Sep 17 00:00:00 2001 From: Agent Workbench Dev Date: Wed, 4 Nov 2026 20:13:54 +0800 Subject: [PATCH] fix(qa): inspect the refreshed HTML preview document --- docs/RELIABILITY-1.25.2.md | 2 ++ progress.md | 1 + scripts/verify-local-files.mjs | 9 +++++++-- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/docs/RELIABILITY-1.25.2.md b/docs/RELIABILITY-1.25.2.md index b063a586..56d96c25 100644 --- a/docs/RELIABILITY-1.25.2.md +++ b/docs/RELIABILITY-1.25.2.md @@ -61,3 +61,5 @@ readBudgetPolicyVersion=3把多文件/原工件读取作为共享预算批次, 已补隔离Python310 venv+pytest8.4.2与固定Chromium浏览器,避免把环境缺失当豁免。源码网页预算诊断两视口10组通过,完整回归运行中。新X驱动、一次正式升级驱动及冻结计划已准备;只做语法检查,没有发送模型请求。阶段未完成不标交付。 接续复核发现正式升级驱动的候选清单/编译版本两处仍写1.25.1,已在任何正式操作前更正为1.25.2;起始宿主断言仍为1.25.1。源码1440任务余额、390上下文窗口截图实际回看,标题、原暂停数值、恢复入口与窄屏文字均可读,无横向溢出。 + +源码实际Edge/Electron更新状态7组通过,1440失败和390未知原图已回看。基础文件首轮7/9在刷新后的iframe只读隔离检查遇到Frame was detached;只把此只读检查改为重新获取文档并有界等待,未重放点击/写入,新的完整9/9通过。首日志source-local-files.log及复验source-local-files-recheck.log、各自UUID目录原样保留;既有桥接/Node均undefined断言未放宽。 diff --git a/progress.md b/progress.md index e7f35a96..a1ff14fe 100644 --- a/progress.md +++ b/progress.md @@ -2,6 +2,7 @@ ## 1.25.2 可靠性闭环 +- 接续回看源码1440/390预算原图,修正正式驱动两处候选版本并本地提交b4e1569c。实际更新状态Edge/Electron7组通过并回看原图;基础文件首7/9遇到刷新iframe脱离,仅为只读隔离检查加有界重取文档,完整新9/9通过。首失败与复验原目录保留。 - 用户授权后从干净532b9d60开始。复用独立复核三个反例,正式运行保持不变。 - 已读AGENTS及复核;采用planning-with-files,session-catchup无待同步输出。首次多文件补丁上下文失败且无变化,随后按真实标题修正。 - 当前阶段:预留来源顺序修复;后续安装变化核验、混合进展及吞吐、发行验收、新真实实验,各阶段验证/回顾/本地提交。 diff --git a/scripts/verify-local-files.mjs b/scripts/verify-local-files.mjs index e10027c0..3194b811 100644 --- a/scripts/verify-local-files.mjs +++ b/scripts/verify-local-files.mjs @@ -91,8 +91,13 @@ try { await (await application.browserWindow(desktopPage)).evaluate(window => { window.showInactive(); window.setContentSize(1440, 960); }); await desktopPage.locator('.connection.connected').waitFor(); await desktopPage.getByRole('combobox', { name: '当前项目', exact: true }).selectOption(project.id); await fileFlow(desktopPage, 'electron'); await overflow(desktopPage); - const rejected = await desktopPage.frameLocator('iframe').locator('body').evaluate(() => ({ bridge: typeof window.desktopWorkbench, require: typeof window.require })); - assert.deepEqual(rejected, { bridge: 'undefined', require: 'undefined' }); record('electron: preview subframe has no native bridge or Node'); + // A saved-file refresh replaces the iframe. Reacquire its actual document + // for this read-only check if the old document detaches during inspection. + await expect(async () => { + const rejected = await desktopPage.frameLocator('iframe').locator('body').evaluate(() => ({ bridge: typeof window.desktopWorkbench, require: typeof window.require })); + assert.deepEqual(rejected, { bridge: 'undefined', require: 'undefined' }); + }).toPass({ timeout: 10000 }); + record('electron: preview subframe has no native bridge or Node'); await desktopPage.getByRole('button', { name: '源码', exact: true }).click(); // Exercise the actual Windows openDirectory dialog contract with an explicit // cancelled fixture, without asking the user to select a test-only project.