summaryrefslogtreecommitdiff
path: root/frontend/src/lib/metricRow.test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/lib/metricRow.test.ts')
-rw-r--r--frontend/src/lib/metricRow.test.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/lib/metricRow.test.ts b/frontend/src/lib/metricRow.test.ts
index a8149bd..ff0dde0 100644
--- a/frontend/src/lib/metricRow.test.ts
+++ b/frontend/src/lib/metricRow.test.ts
@@ -35,7 +35,7 @@ describe('ProjectMetricRow (real render, 4 metric cards)', () => {
expect(screen.getByText('回测')).toBeTruthy();
expect(screen.getByText('AI 用量')).toBeTruthy();
// 数字直接可见:项目卡/数据集卡与回测拆分值
- const values = [...container.querySelectorAll('.metric-row .mvalue')].map((n) => n.textContent!.replace(/\s+/g, ' ').trim());
+ const values = [...container.querySelectorAll('[data-testid="metric-value"]')].map((n) => n.textContent!.replace(/\s+/g, ' ').trim());
expect(values[0]).toBe('3');
expect(values[1]).toBe('2');
expect(values[2]).toContain('运行中');