Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: fix electron tests on windows (#18927)
Max Schmittb1e2b8b629b1
diff --git a/tests/electron/electron-app.spec.ts b/tests/electron/electron-app.spec.tsindex f382987361..9fc88906a0 100644--- a/tests/electron/electron-app.spec.ts+++ b/tests/electron/electron-app.spec.ts@@ -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 }) => {