mirror of
https://github.com/stablyai/orca.git
synced 2026-10-22 00:03:47 +00:00
test(dashboard): retarget the agent-row question assertion at the shared token
DashboardAgentRow renders the glyph through AgentStateDot, so the component already moved with the token — only its assertion still pinned text-amber-500. Missed locally because I ran components/dashboard-popout but not components/dashboard.
This commit is contained in:
@@ -247,13 +247,14 @@ describe('DashboardAgentRow', () => {
|
||||
expect(classes.every((className) => !/\bgroup-hover:/.test(className))).toBe(true)
|
||||
})
|
||||
|
||||
it('renders waiting rows with the amber question glyph', () => {
|
||||
it('renders waiting rows with the shared question glyph', () => {
|
||||
const markup = renderRow(makeAgent({}, { state: 'waiting' }))
|
||||
const tokens = classTokens(markup)
|
||||
|
||||
expect(markup).toContain('aria-label="Waiting for input"')
|
||||
expect(markup).toContain('lucide-message-circle-question-mark')
|
||||
expect(tokens).toContain('text-amber-500')
|
||||
expect(tokens).toContain('text-agent-question')
|
||||
expect(tokens).not.toContain('text-amber-500')
|
||||
expect(tokens).not.toContain('bg-red-500')
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user