diff options
Diffstat (limited to 'frontend/src/lib/round2DashboardIntegration.test.ts')
| -rw-r--r-- | frontend/src/lib/round2DashboardIntegration.test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/lib/round2DashboardIntegration.test.ts b/frontend/src/lib/round2DashboardIntegration.test.ts index 363e1da..c345ca2 100644 --- a/frontend/src/lib/round2DashboardIntegration.test.ts +++ b/frontend/src/lib/round2DashboardIntegration.test.ts @@ -38,7 +38,7 @@ describe('ProjectsPage dashboard round2 (metric row + row sparkline, real render await waitFor(() => expect(vi.mocked(getAIUsage)).toHaveBeenCalled()); const cards = document.querySelectorAll('[data-testid="metric-card"]'); await waitFor(() => expect(cards.length).toBe(4)); - const values = [...document.querySelectorAll('.metric-row .mvalue')].map((n) => n.textContent!.replace(/\s+/g, ' ').trim()); + const values = [...document.querySelectorAll('[data-testid="metric-value"]')].map((n) => n.textContent!.replace(/\s+/g, ' ').trim()); expect(values[0]).toBe('2'); expect(values[1]).toBe('3'); expect(values[2]).toContain('已完成'); |
