test(frontend): update vitest assertions for new design tokens
This commit is contained in:
@@ -18,10 +18,10 @@ describe('SimulationStatusBadge', () => {
|
||||
expect(badge.textContent).toBe(label);
|
||||
});
|
||||
|
||||
it('applies fog surface for pending', () => {
|
||||
it('applies cloud surface for pending (terminal-SOC semantic tokens)', () => {
|
||||
render(<SimulationStatusBadge status="pending" />);
|
||||
const badge = screen.getByTestId('simulation-status-badge');
|
||||
expect(badge.className).toContain('bg-fog');
|
||||
expect(badge.className).toContain('bg-cloud');
|
||||
});
|
||||
|
||||
it('applies primary-soft surface for in_progress', () => {
|
||||
@@ -30,15 +30,15 @@ describe('SimulationStatusBadge', () => {
|
||||
expect(badge.className).toContain('bg-primary-soft');
|
||||
});
|
||||
|
||||
it('applies bloom-coral surface for review_required', () => {
|
||||
it('applies warn-soft surface for review_required (terminal-SOC semantic tokens)', () => {
|
||||
render(<SimulationStatusBadge status="review_required" />);
|
||||
const badge = screen.getByTestId('simulation-status-badge');
|
||||
expect(badge.className).toContain('bg-bloom-coral');
|
||||
expect(badge.className).toContain('bg-warn-soft');
|
||||
});
|
||||
|
||||
it('applies storm-deep surface for done', () => {
|
||||
it('applies success-soft surface for done (terminal-SOC semantic tokens)', () => {
|
||||
render(<SimulationStatusBadge status="done" />);
|
||||
const badge = screen.getByTestId('simulation-status-badge');
|
||||
expect(badge.className).toContain('bg-storm-deep');
|
||||
expect(badge.className).toContain('bg-success-soft');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user