test: align native composer hints and bound Markdown corpus checks
Cross-platform packages / Validate source (push) Canceled after 0s
Cross-platform packages / Authorize desktop packaging (push) Canceled after 0s
Cross-platform packages / linux arm64 (push) Canceled after 0s
Cross-platform packages / macos arm64 (push) Canceled after 0s
Cross-platform packages / windows arm64 (push) Canceled after 0s
Cross-platform packages / linux x64 (push) Canceled after 0s
Cross-platform packages / macos x64 (push) Canceled after 0s
Cross-platform packages / windows x64 (push) Canceled after 0s
Cross-platform packages / Publish GitHub and OSS release (push) Canceled after 0s

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 b02ce31886
3 changed files with 16 additions and 3 deletions
+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()