Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ function mount(isMaximized = false) {
}

describe('PanelHeader', () => {
it('exposes the heading id the dock landmark labels', () => {
it('exposes the test id and the heading id the dock landmark labels', () => {
mount()

expect(
screen.getByRole('heading', { name: 'Comfy Agent' })
).toHaveAttribute('id', 'agent-panel-title')
const heading = screen.getByRole('heading', { name: 'Comfy Agent' })
expect(heading).toHaveAttribute('data-testid', 'agent-panel-title')
expect(heading).toHaveAttribute('id', 'agent-panel-title')
})

it.for([
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const sizeToggleLabel = computed(() =>
<div class="flex items-center gap-1">
<h1
id="agent-panel-title"
data-testid="agent-panel-title"
class="my-0 text-sm font-normal whitespace-nowrap text-base-foreground"
>
{{ t('agent.title') }}
Expand Down
Loading