13 lines
457 B
TypeScript
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);
|
|
});
|
|
});
|