From 6d1f4914ca1d7a93b7383f582136d118f3eea6a1 Mon Sep 17 00:00:00 2001 From: gahusb Date: Sun, 17 May 2026 20:55:24 +0900 Subject: [PATCH] test(agent-office): cover pulse class for AgentCard state dot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds two tests verifying that working state adds the pulse class and idle state does not. Pulse animation is part of the design spec §5 but was not covered by the original 8 tests. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../agent-office/components/AgentCard.test.jsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/pages/agent-office/components/AgentCard.test.jsx b/src/pages/agent-office/components/AgentCard.test.jsx index 2d51148..37173b6 100644 --- a/src/pages/agent-office/components/AgentCard.test.jsx +++ b/src/pages/agent-office/components/AgentCard.test.jsx @@ -17,6 +17,22 @@ describe('AgentCard', () => { expect(dot).toHaveClass('working'); }); + it('working 상태에서는 pulse 클래스도 부여', () => { + const { container } = render( + {}} /> + ); + const dot = container.querySelector('.ao-card-dot'); + expect(dot).toHaveClass('pulse'); + }); + + it('idle 상태에는 pulse 클래스 부여하지 않음', () => { + const { container } = render( + {}} /> + ); + const dot = container.querySelector('.ao-card-dot'); + expect(dot).not.toHaveClass('pulse'); + }); + it('agentState 없으면 idle로 fallback', () => { const { container } = render( {}} />