The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test(desktop): require copy control on Bot Mode group chat lines
HarishDarkofac2b127eed2
diff --git a/apps/desktop/src/plugins/hermes-bots/tests/group-chat.test.mjs b/apps/desktop/src/plugins/hermes-bots/tests/group-chat.test.mjsindex b817b491a7b..6e6b84c3f0d 100644--- a/apps/desktop/src/plugins/hermes-bots/tests/group-chat.test.mjs+++ b/apps/desktop/src/plugins/hermes-bots/tests/group-chat.test.mjs@@ -683,3 +683,26 @@ test('source contract: thread UI — folded rows, per-thread reply box, new-threassert.match(pluginSource, /children: 'New Thread'/)assert.match(pluginSource, /const markKey = `\$\{thread\}::\$\{memberKey\}`/)})++function groupChatWorkspaceSource() {+ const start = pluginSource.indexOf('function GroupChatWorkspace')+ const end = pluginSource.indexOf('function closeGroupChatMainTab')+ assert.ok(start >= 0, 'GroupChatWorkspace is defined')+ assert.ok(end > start, 'closeGroupChatMainTab follows GroupChatWorkspace')+ return pluginSource.slice(start, end)+}++test('source contract: group chat log lines expose CopyButton on the entry body', () => {+ const src = groupChatWorkspaceSource()+ assert.match(pluginSource, /CopyButton/)+ assert.match(src, /CopyButton/)+ assert.match(src, /text:\s*entry\.text/)+ assert.match(src, /stopPropagation:\s*true/)+ assert.match(src, /appearance:\s*['"]icon['"]/)+ assert.match(src, /buttonSize:\s*['"]icon['"]/)+ assert.match(src, /['"]group /)+ assert.doesNotMatch(src, /playSpeechText/)+ assert.doesNotMatch(src, /RefreshCw/)+ assert.doesNotMatch(src, /readAloud/)+ assert.doesNotMatch(src, /ActionBarPrimitive\.Reload/)+})