test: align native composer hints and bound Markdown corpus checks

Update the Electron probe for the two-line shortcut placeholder after greeting removal. Preserve all prefix-equivalence checks and give only the exhaustive Markdown corpus test 15 seconds. Validate through CI per user instruction.
This commit is contained in:
mesalogo
2026-10-01 22:43:33 +08:00
parent 7cb74cce78
commit aa4d20ee55
3 changed files with 16 additions and 3 deletions
@@ -39,3 +39,15 @@ Story Graph 绑定不经过这些方法,Agent 源码、锁及包未变。边
旧 outbox fixture 先建当前数据库,再降为 schema 23 并执行完整迁移,
超过默认 5 秒;仅该用例设 15 秒,保留终态、尝试次数及附件清理断言。
修复不修改发布说明或运行时代码,按用户要求继续交新候选 CI 验证。
## 第二轮 CI
`7cb74cc` 的 CI `36874700588`:首轮两项失败已通过,但仍有 5613 通过、
59 跳过、2 失败,生产构建未执行。检查提交链确认先前提交期间并行加入了
`5e77118`,移除文字输入框占位提示的问候语,App 单元测试已同步为两行,
Electron 侧栏探针却仍要求三行,导致断言失败。探针同步为两行并检查首行键盘提示,
保留平台快捷键、输入、清空、焦点、布局和搜索检查。
Markdown 用例逐一比较超过 1500 个流式前缀,超过默认 5 秒;
仅该用例改为 15 秒,保留全部 DOM 等价、前缀数及多段覆盖断言。
用户明确授权连续修复、双远端推送和 CI 通过后的标签发布,不再中途确认。
本轮仍不运行本地测试,以上修复须由下一次精确候选 CI 验证。
+1 -1
View File
@@ -794,7 +794,7 @@ describe('segmented Markdown rendering', () => {
}
expect(prefixes).toBeGreaterThan(1500)
expect(multiSegment).toBeGreaterThan(500)
})
}, 15000)
it('keeps completed segments intact and falls back for document-scoped syntax', () => {
// List markers never start a segment: the list may continue or turn loose.
+3 -2
View File
@@ -38,11 +38,12 @@ export async function verifySidebarSearch(win: BrowserWindow): Promise<number> {
assert.equal(await run(`(async () => {
const input = document.querySelector('.composer textarea');
const info = await window.goodbuddy.app.getInfo();
return input.placeholder.split('\\n').length === 3 &&
return input.placeholder.split('\\n').length === 2 &&
input.placeholder.startsWith('Enter to send · Shift+Enter for a new line') &&
input.placeholder.includes((info.platform === 'darwin' ? 'Command' : 'Ctrl') + '+N for a new conversation') &&
(!info.shortcut || input.placeholder.includes(info.shortcut + ' for quick access')) &&
!document.querySelector('.composer-meta__shortcut');
})()`), true)
})()`), true, 'Text composer keeps two shortcut-hint lines without the removed greeting')
win.show()
win.focus()
win.webContents.focus()