Files
Agent-System/.doc/audit/2026-09-13-document-revision-save-selector.md
T
WeiCHEN 4baa1220ee docs(ops): close docrev UI audits after main+post-restart PASS
Record real Playwright ledgers, mark 20 audits and 9 remediations done, and leave management-implementation-plan as plan-only.
2026-09-23 04:00:49 +08:00

49 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
title: "UI-06 全页模糊保存按钮未发出 PATCH"
status: done
created: 2026-09-13
updated: 2026-09-22
severity: high
---
# UI-06 全页模糊保存按钮未发出 PATCH
> **W3 UI-rerun 关闭(2026-09-22)**:`status=done`。真实 Playwright 账本 PASS:[`ui-acceptance-results.json`](../test-reports/assets/2026-09-22-docrev-ui-rerun/ui-acceptance-results.json)(main UI-00..16)+ [`ui-acceptance-results-post-restart.json`](../test-reports/assets/2026-09-22-docrev-ui-rerun/ui-acceptance-results-post-restart.json)(UI-15)。任务 tip 已合入本地 `dev`;详见 [short-term](../ops/short-term/2026-09-22-docrev-ui-rerun.md) 与 [测试报告](../test-reports/2026-09-22-docrev-ui-rerun-test-report.md)。
## 现象
第七轮真实 UI(schema 30):
- 稳定 `document-block` 已成功双击,编辑弹窗出现
- `saveOpenEditor` 使用全页 `getByRole(button, { name: /保存修改|保存/ })`
- 严格模式同时命中 7 个「一键保存到我的私密文档库」与真正的「保存修改」
- **未发送 PATCH**,UI-06 失败
## 根因分析
| 层 | 问题 |
|---|---|
| 聊天栏 | `ReplyActionBar` 保存按钮的可访问名称是 `aria-label="一键保存到我的私密文档库"`,含「保存」 |
| 弹窗 | `BlockEditorModal` 无 `role=dialog` / 稳定 `aria-label`,无法按 dialog 收窄 |
| 脚本 | 全页模糊 `/保存修改\|保存/` 在 Playwright 严格模式命中多个控件 |
块寻址已修好;本轮是 **保存选择器过宽**,不是正文或双击失败。
## 严重度
`high`
## 关联整改
- Short-term: [../ops/short-term/2026-09-13-document-revision-e2e-save-selector.md](../archive/ops/2026-09-13-document-revision-e2e-save-selector.md)
- 分支: `fix/document-revision-e2e-save-selector`
## 证据
- Evidence root(已归档、本轮勿提交):`.doc/test-reports/assets/2026-09-13-document-revision-runtime-ui/schema30-ui06-save-selector-failure/`
## 开放问题
- 占槽后真实 UI-06/13b 重跑;本任务保持 `in_progress`,不得标 `done`