mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: remove PWTEST_RECORDER_PORT as it was ignored (#32717)
This commit is contained in:
parent
a00e1c9c4b
commit
01b44ba077
@ -123,9 +123,8 @@ export class RecorderApp extends EventEmitter implements IRecorderApp {
|
||||
persistentContextOptions: {
|
||||
noDefaultViewport: true,
|
||||
headless: !!process.env.PWTEST_CLI_HEADLESS || (isUnderTest() && !headed),
|
||||
useWebSocket: !!process.env.PWTEST_RECORDER_PORT,
|
||||
useWebSocket: isUnderTest(),
|
||||
handleSIGINT: false,
|
||||
args: process.env.PWTEST_RECORDER_PORT ? [`--remote-debugging-port=${process.env.PWTEST_RECORDER_PORT}`] : [],
|
||||
executablePath: inspectedContext._browser.options.isChromium ? inspectedContext._browser.options.customExecutablePath : undefined,
|
||||
}
|
||||
});
|
||||
|
@ -178,7 +178,6 @@ export async function openTraceViewerApp(url: string, browserName: string, optio
|
||||
...options?.persistentContextOptions,
|
||||
useWebSocket: isUnderTest(),
|
||||
headless: !!options?.headless,
|
||||
args: process.env.PWTEST_RECORDER_PORT ? [`--remote-debugging-port=${process.env.PWTEST_RECORDER_PORT}`] : [],
|
||||
},
|
||||
});
|
||||
|
||||
|
@ -50,7 +50,6 @@ const playwrightToAutomateInspector = require('../../../packages/playwright-core
|
||||
|
||||
export const test = contextTest.extend<CLITestArgs>({
|
||||
recorderPageGetter: async ({ context, toImpl, mode }, run, testInfo) => {
|
||||
process.env.PWTEST_RECORDER_PORT = String(10907 + testInfo.workerIndex);
|
||||
testInfo.skip(mode.startsWith('service'));
|
||||
await run(async () => {
|
||||
while (!toImpl(context).recorderAppForTest)
|
||||
@ -69,7 +68,6 @@ export const test = contextTest.extend<CLITestArgs>({
|
||||
},
|
||||
|
||||
runCLI: async ({ childProcess, browserName, channel, headless, mode, launchOptions }, run, testInfo) => {
|
||||
process.env.PWTEST_RECORDER_PORT = String(10907 + testInfo.workerIndex);
|
||||
testInfo.skip(mode.startsWith('service'));
|
||||
|
||||
await run((cliArgs, { autoExitWhen } = {}) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user