From 2746b34f831b793f12a8dc3966d6a540ac3e5c6e Mon Sep 17 00:00:00 2001 From: Hibryda Date: Thu, 12 Mar 2026 02:52:14 +0100 Subject: [PATCH] feat(e2e): add data-testid attributes to 7 key Svelte components Stable test selectors for E2E: agent-pane, data-agent-status, project-box, data-project-id, status-bar, agent-session, sidebar-rail, command-palette, terminal-tabs and more. --- v2/src/lib/components/Agent/AgentPane.svelte | 8 +++++--- v2/src/lib/components/StatusBar/StatusBar.svelte | 2 +- v2/src/lib/components/Workspace/AgentSession.svelte | 2 +- v2/src/lib/components/Workspace/CommandPalette.svelte | 3 ++- v2/src/lib/components/Workspace/GlobalTabBar.svelte | 3 ++- v2/src/lib/components/Workspace/ProjectBox.svelte | 6 ++++-- v2/src/lib/components/Workspace/TerminalTabs.svelte | 4 ++-- 7 files changed, 17 insertions(+), 11 deletions(-) diff --git a/v2/src/lib/components/Agent/AgentPane.svelte b/v2/src/lib/components/Agent/AgentPane.svelte index c470411..40f55d9 100644 --- a/v2/src/lib/components/Agent/AgentPane.svelte +++ b/v2/src/lib/components/Agent/AgentPane.svelte @@ -375,7 +375,7 @@ }); -
+
SUB @@ -405,7 +405,7 @@ {/if} {/if} -
+
{#if !session || session.messages.length === 0}
@@ -547,7 +547,7 @@ {#if !autoScroll} {/if} - +
{:else if session.status === 'done'}
@@ -623,6 +623,7 @@ bind:value={inputPrompt} placeholder={isRunning ? 'Agent is running...' : 'Ask Claude something... (/ for skills)'} class="prompt-input" + data-testid="agent-prompt" rows="1" disabled={isRunning} oninput={(e) => { @@ -660,6 +661,7 @@ >
{/each} - + {#if agentSessionId}