16 lines
530 B
TypeScript
16 lines
530 B
TypeScript
import { test, expect } from '@playwright/test';
|
|
import { MobileTestReporter } from '../../utils/MobileTestReporter';
|
|
|
|
test('MobileTestReporter should generate HTML report', async () => {
|
|
const reporter = new MobileTestReporter({} as any);
|
|
const html = reporter.generateHtmlReport({
|
|
suites: [],
|
|
duration: 10000,
|
|
status: 'passed',
|
|
} as any);
|
|
|
|
expect(html).toContain('移动端测试报告');
|
|
expect(html).toContain('总测试数');
|
|
expect(html).toContain('通过');
|
|
expect(html).toContain('失败');
|
|
}); |