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 }) => {
|
test('should preserve args', async ({ electronApp }) => {
|
||||||
const argv = await electronApp.evaluate(async ({ app }) => process.argv);
|
const argv = await electronApp.evaluate(async () => process.argv);
|
||||||
expect(argv.slice(1)).toEqual([expect.stringContaining('electron/electron-app.js')]);
|
expect(argv.slice(1)).toEqual([expect.stringContaining(path.join('electron', 'electron-app.js'))]);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should return windows', async ({ electronApp, newWindow }) => {
|
test('should return windows', async ({ electronApp, newWindow }) => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue