mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-13 07:35:33 +03:00
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 {
|
||||
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 New Issue
Block a user