18 lines
666 B
JavaScript
18 lines
666 B
JavaScript
|
|
import { test, expect } from '@playwright/test';
|
||
|
|
|
||
|
|
test('Minimal DataTable performance test', async ({ page }) => {
|
||
|
|
page.on('console', msg => console.log('BROWSER LOG:', msg.text()));
|
||
|
|
page.on('pageerror', err => console.log('PAGE ERROR:', err));
|
||
|
|
await page.goto('/test/minimal_perf.html');
|
||
|
|
await page.waitForTimeout(1000);
|
||
|
|
const result = await page.evaluate(async () => {
|
||
|
|
const perf = await window.startTest();
|
||
|
|
return {
|
||
|
|
perf,
|
||
|
|
stPerf: window.__stPerf
|
||
|
|
};
|
||
|
|
});
|
||
|
|
console.log('Final Performance Stats:', JSON.stringify(result, null, 2));
|
||
|
|
expect(result.perf.scrollCount).toBeGreaterThan(0);
|
||
|
|
});
|