playwright
playwright copied to clipboard
[BUG] electron launch timeout 3000ms after update playwright to 1.33.0
System info
- Playwright Version: 1.33.0
- Operating System: Windows 11
- Browser: electron
- Other info:
Before I update playwright today (May, 15), this error didn't happen. I tried to run the same script last week and was running ok. Didn't happen any update in my electron app that could possible break.
Test file (self-contained)
test.beforeEach(async ({ page }) => {
electronApp = await electron.launch({ executablePath: '< my electron path >' });
window = await electronApp.firstWindow();
Expected
Expect to open the electron app and run the test script.
Actual
Appears the error:
- test_LoginNGMT.spec.js:26:5 › Try to Sign In › login field ──────────────────────────────────── Test timeout of 30000ms exceeded while running "beforeEach" hook.
@painttw07 Your test times out with 30 seconds. There are two possibilities:
- Your test timeout is too small. Look at this timeouts guide for help.
- There is a bug somewhere, and either
launch()
orfirstWindow()
hangs. In this case, providing a repro that we can run locally would be very helpful. Otherwise, it's unlikely we'll be able to fix the issue.
Closing because we lack the information to act on this issue. If you can provide a full repro, please file a new issue by filling the "Bug Report" template, and link to this one.