mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
test: do not pollute stderr with trace-viewer wsEndpoint (#21748)
This commit is contained in:
parent
4a66cca124
commit
53d341be01
@ -99,7 +99,7 @@ export async function showTraceViewer(traceUrls: string[], browserName: string,
|
||||
await context.extendInjectedScript(consoleApiSource.source);
|
||||
const [page] = context.pages();
|
||||
|
||||
if (isUnderTest())
|
||||
if (process.env.PWTEST_PRINT_WS_ENDPOINT)
|
||||
process.stderr.write('DevTools listening on: ' + context._browser.options.wsEndpoint + '\n');
|
||||
|
||||
if (traceViewerBrowser === 'chromium')
|
||||
|
||||
@ -82,6 +82,7 @@ export const test = base
|
||||
PWTEST_UNDER_TEST: '1',
|
||||
PWTEST_CACHE_DIR: cacheDir,
|
||||
PWTEST_HEADED_FOR_TEST: headless ? '0' : '1',
|
||||
PWTEST_PRINT_WS_ENDPOINT: '1',
|
||||
},
|
||||
cwd: options.cwd ? path.resolve(baseDir, options.cwd) : baseDir,
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user