test: fix electron tests on windows (#18927)

This commit is contained in:
Max Schmitt 2022-11-18 13:44:42 -10:00 committed by GitHub
parent c0d0f54a12
commit b1e2b8b629
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 }) => {