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:
Brennan Benson
2026-08-13 11:57:49 -07:00
parent d3965853ca
commit 58cd8458fd
@@ -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')
})