mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-05 19:04:43 +03:00
test: fix electron tests on windows (#18927)
This commit is contained in:
parent
c0d0f54a12
commit
b1e2b8b629
@ -39,8 +39,8 @@ test('should script application', async ({ electronApp }) => {
|
||||
});
|
||||
|
||||
test('should preserve args', async ({ electronApp }) => {
|
||||
const argv = await electronApp.evaluate(async ({ app }) => process.argv);
|
||||
expect(argv.slice(1)).toEqual([expect.stringContaining('electron/electron-app.js')]);
|
||||
const argv = await electronApp.evaluate(async () => process.argv);
|
||||
expect(argv.slice(1)).toEqual([expect.stringContaining(path.join('electron', 'electron-app.js'))]);
|
||||
});
|
||||
|
||||
test('should return windows', async ({ electronApp, newWindow }) => {
|
||||
|
Loading…
Reference in New Issue
Block a user