argus/src/web/tests/playwright/metric.spec.ts
2025-10-30 09:48:07 +08:00

13 lines
457 B
TypeScript

import { test, expect } from '@playwright/test';
import { metricsEntries } from './test-entries';
import { testEntryCards } from './helpers/entrycards-helpers';
test.describe('Metrics Page', () => {
test('should render all metric cards', async ({ page }) => {
await page.goto('http://localhost:8080/metrics');
await expect(page.locator('h2', { hasText: '指标详情' })).toBeVisible();
await testEntryCards(page, metricsEntries);
});
});