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: {
|
persistentContextOptions: {
|
||||||
noDefaultViewport: true,
|
noDefaultViewport: true,
|
||||||
headless: !!process.env.PWTEST_CLI_HEADLESS || (isUnderTest() && !headed),
|
headless: !!process.env.PWTEST_CLI_HEADLESS || (isUnderTest() && !headed),
|
||||||
useWebSocket: !!process.env.PWTEST_RECORDER_PORT,
|
useWebSocket: isUnderTest(),
|
||||||
handleSIGINT: false,
|
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,
|
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,
|
...options?.persistentContextOptions,
|
||||||
useWebSocket: isUnderTest(),
|
useWebSocket: isUnderTest(),
|
||||||
headless: !!options?.headless,
|
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>({
|
export const test = contextTest.extend<CLITestArgs>({
|
||||||
recorderPageGetter: async ({ context, toImpl, mode }, run, testInfo) => {
|
recorderPageGetter: async ({ context, toImpl, mode }, run, testInfo) => {
|
||||||
process.env.PWTEST_RECORDER_PORT = String(10907 + testInfo.workerIndex);
|
|
||||||
testInfo.skip(mode.startsWith('service'));
|
testInfo.skip(mode.startsWith('service'));
|
||||||
await run(async () => {
|
await run(async () => {
|
||||||
while (!toImpl(context).recorderAppForTest)
|
while (!toImpl(context).recorderAppForTest)
|
||||||
|
|
@ -69,7 +68,6 @@ export const test = contextTest.extend<CLITestArgs>({
|
||||||
},
|
},
|
||||||
|
|
||||||
runCLI: async ({ childProcess, browserName, channel, headless, mode, launchOptions }, run, testInfo) => {
|
runCLI: async ({ childProcess, browserName, channel, headless, mode, launchOptions }, run, testInfo) => {
|
||||||
process.env.PWTEST_RECORDER_PORT = String(10907 + testInfo.workerIndex);
|
|
||||||
testInfo.skip(mode.startsWith('service'));
|
testInfo.skip(mode.startsWith('service'));
|
||||||
|
|
||||||
await run((cliArgs, { autoExitWhen } = {}) => {
|
await run((cliArgs, { autoExitWhen } = {}) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue