This commit is contained in:
parent
1c54ead163
commit
df6fbcb8dc
|
|
@ -106,7 +106,7 @@ export const test = _baseTest.extend<TestFixtures, WorkerFixtures>({
|
||||||
(browserType as any)._defaultLaunchOptions = undefined;
|
(browserType as any)._defaultLaunchOptions = undefined;
|
||||||
}, { scope: 'worker', auto: true }],
|
}, { scope: 'worker', auto: true }],
|
||||||
|
|
||||||
_connectedBrowser: [async ({ playwright, browserName, channel, headless, connectOptions, launchOptions }, use) => {
|
_connectedBrowser: [async ({ playwright, browserName, connectOptions, _browserOptions }, use) => {
|
||||||
if (!connectOptions) {
|
if (!connectOptions) {
|
||||||
await use(undefined);
|
await use(undefined);
|
||||||
return;
|
return;
|
||||||
|
|
@ -116,7 +116,7 @@ export const test = _baseTest.extend<TestFixtures, WorkerFixtures>({
|
||||||
const browser = await playwright[browserName].connect(connectOptions.wsEndpoint, {
|
const browser = await playwright[browserName].connect(connectOptions.wsEndpoint, {
|
||||||
headers: {
|
headers: {
|
||||||
'x-playwright-browser': browserName,
|
'x-playwright-browser': browserName,
|
||||||
'x-playwright-launch-options': JSON.stringify(launchOptions),
|
'x-playwright-launch-options': JSON.stringify(_browserOptions),
|
||||||
...connectOptions.headers,
|
...connectOptions.headers,
|
||||||
},
|
},
|
||||||
timeout: connectOptions.timeout ?? 3 * 60 * 1000, // 3 minutes
|
timeout: connectOptions.timeout ?? 3 * 60 * 1000, // 3 minutes
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue