test(chromium): ensure that arguments can be passed with spaces (#10057)
This commit is contained in:
parent
0878548238
commit
9c1ff08186
|
|
@ -439,4 +439,14 @@ playwrightTest('should use proxy with connectOverCDP', async ({ browserType, ser
|
||||||
} finally {
|
} finally {
|
||||||
await browserServer.close();
|
await browserServer.close();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
playwrightTest('should pass args with spaces', async ({ browserType, createUserDataDir }, testInfo) => {
|
||||||
|
const browser = await browserType.launchPersistentContext(await createUserDataDir(), {
|
||||||
|
args: ['--user-agent=I am Foo']
|
||||||
|
});
|
||||||
|
const page = await browser.newPage();
|
||||||
|
const userAgent = await page.evaluate(() => navigator.userAgent);
|
||||||
|
await browser.close();
|
||||||
|
expect(userAgent).toBe('I am Foo');
|
||||||
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue