Closed
Description
Version
1.44.0
Steps to reproduce
- Clone this repository https://github.com/c3er/electron-playwright-issue
- Install dependencies:
npm install
- Run test:
npm run test
Expected behavior
Test passes. If the test is executed on the desktop, the application window flickers.
Actual behavior
Test fails with this error message:
Sample integration test
1) "before all" hook for "opens a window"
2) "after all" hook for "opens a window"
0 passing (22ms)
2 failing
1) Sample integration test
"before all" hook for "opens a window":
electron.launch: Process failed to launch!
at async startApp (test\integration.spec.js:10:17)
at async Context.<anonymous> (test\integration.spec.js:26:39)
2) Sample integration test
"after all" hook for "opens a window":
TypeError: Cannot read properties of null (reading 'close')
at Context.<anonymous> (test\integration.spec.js:28:33)
at process.processImmediate (node:internal/timers:478:21)
at process.callbackTrampoline (node:internal/async_hooks:130:17)
Additional context
The same test works fine with Playwright 1.43.1. If you change the version in the package.json
and reinstall the dependencies, the test passes.
The bug seems only to occur on Windows. On macOS, it works fine. I didn't try Linux.
Environment
System:
OS: Windows 11 10.0.22631
CPU: (32) x64 AMD Ryzen 9 5950X 16-Core Processor
Memory: 47.42 GB / 63.90 GB
Binaries:
Node: 20.9.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
npm: 10.7.0 - C:\Program Files\nodejs\npm.CMD
IDEs:
VSCode: 1.89.1 - C:\Users\Christian\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
Languages:
Bash: 5.0.17 - C:\Windows\system32\bash.EXE
npmPackages:
playwright: 1.44.0 => 1.44.0