Co-authored-by: xiuting.xu <xiutingxt.xu@gmail.com> Reviewed-on: #38 Reviewed-by: huhy <husteryezi@163.com> Reviewed-by: yuyr <yuyr@zgclab.edu.cn> Reviewed-by: sundapeng <sundp@mail.zgclab.edu.cn>
18 lines
603 B
TypeScript
18 lines
603 B
TypeScript
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);
|
|
});
|
|
});
|