Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: drop "large number of logs" test (#38195)

Simon Knott81711dba8f6e
diff --git a/tests/playwright-test/reporter-junit.spec.ts b/tests/playwright-test/reporter-junit.spec.ts
index 838f35e841..9947484903 100644
--- a/tests/playwright-test/reporter-junit.spec.ts
+++ b/tests/playwright-test/reporter-junit.spec.ts
@@ -126,28 +126,6 @@ for (const useIntermediateMergeReport of [false, true] as const) {
expect(result.exitCode).toBe(1);
});
- test('should handle large number of console logs', { annotation: { type: 'issue', description: 'https://github.com/microsoft/playwright/issues/37719' } }, async ({ runInlineTest }, testInfo) => {
- test.slow();
- // need to go via disk, otherwise our test harness would print 500k lines of stdout to the Github Actions UI that can't handle it.
- const reportFile = testInfo.outputPath('report.xml');
- const result = await runInlineTest({
- 'a.test.ts': `
- import { test, expect } from '@playwright/test';
- test('one', async ({}) => {
- test.slow();
- for (let i = 0; i < 500000; i++) {
- console.log('log line ' + i);
- }
- });
- `,
- }, { reporter: 'junit' }, { PLAYWRIGHT_JUNIT_OUTPUT_FILE: reportFile });
- expect(result.exitCode).toBe(0);
- const report = await fs.promises.readFile(reportFile, 'utf8');
- const testcase = parseXML(report)['testsuites']['testsuite'][0]['testcase'][0];
- expect(testcase['system-out']).toHaveLength(1);
- expect(testcase['system-out'][0]).toContain('log line 99999');
- });
-
test('should render stdout without ansi escapes', async ({ runInlineTest }) => {
const result = await runInlineTest({
'playwright.config.ts': `