import { test, expect } from '@playwright/test'; import { logsEntries } from './test-entries'; import { testEntryCards } from './helpers/entrycards-helpers'; import { BASE_URL } from './helpers/utils'; test.describe('Logs Page', () => { test('should render all log cards', async ({ page }) => { await page.goto(`${BASE_URL}/logs`); // 等待标题可见 const title = page.locator('h2', { hasText: '日志详情' }); await expect(title).toBeVisible({ timeout: 10000 }); // 测试所有 log card await testEntryCards(page, logsEntries); }); });