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.
This commit is contained in:
parent
4097253921
commit
2746b34f83
7 changed files with 17 additions and 11 deletions
|
|
@ -163,6 +163,8 @@
|
|||
class="project-box"
|
||||
class:active
|
||||
style="--accent: var({accentVar})"
|
||||
data-testid="project-box"
|
||||
data-project-id={project.id}
|
||||
>
|
||||
<ProjectHeader
|
||||
{project}
|
||||
|
|
@ -172,7 +174,7 @@
|
|||
onclick={onactivate}
|
||||
/>
|
||||
|
||||
<div class="project-tabs">
|
||||
<div class="project-tabs" data-testid="project-tabs">
|
||||
<button
|
||||
class="ptab"
|
||||
class:active={activeTab === 'model'}
|
||||
|
|
@ -282,7 +284,7 @@
|
|||
</div>
|
||||
|
||||
<div class="terminal-section" style:display={activeTab === 'model' ? 'flex' : 'none'}>
|
||||
<button class="terminal-toggle" onclick={toggleTerminal}>
|
||||
<button class="terminal-toggle" data-testid="terminal-toggle" onclick={toggleTerminal}>
|
||||
<span class="toggle-chevron" class:expanded={terminalExpanded}>
|
||||
<svg width="10" height="10" viewBox="0 0 10 10" fill="none">
|
||||
<path d="M3 2l4 3-4 3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue