Skip to content

[REGRESSION]: electron tests sometimes freezes for 30 seconds #27523

@ZFail

Description

@ZFail

Context:

  • GOOD Playwright Version: 1.36.2
  • BAD Playwright Version: 1.38.1
  • Operating System: Windows 10

Code Snippet

tested on main repository with command

npx playwright test electron-app.spec.ts
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.

Running 22 tests using 1 worker

  ok 1 tests\electron\electron-app.spec.ts:22:5 › should fire close event (1.2s)
  ok 2 tests\electron\electron-app.spec.ts:34:5 › should dispatch ready event (137ms)
  ok 3 tests\electron\electron-app.spec.ts:46:5 › should script application (145ms)
  ok 4 tests\electron\electron-app.spec.ts:51:5 › should preserve args (137ms)
  ok 5 tests\electron\electron-app.spec.ts:58:5 › should return windows (349ms)
  ok 6 tests\electron\electron-app.spec.ts:63:5 › should evaluate handle (147ms)
  ok 7 tests\electron\electron-app.spec.ts:68:5 › should route network (380ms)
  ok 8 tests\electron\electron-app.spec.ts:81:5 › should support init script (355ms)
  ok 9 tests\electron\electron-app.spec.ts:88:5 › should expose function (362ms)
  ok 10 tests\electron\electron-app.spec.ts:95:5 › should wait for first window (351ms)
  ok 11 tests\electron\electron-app.spec.ts:104:5 › should have a clipboard instance (151ms)
  ok 12 tests\electron\electron-app.spec.ts:111:5 › should test app that opens window fast (136ms)
  ok 13 tests\electron\electron-app.spec.ts:115:5 › should return browser window (378ms)
  ok 14 tests\electron\electron-app.spec.ts:122:5 › should bypass csp (453ms)
  ok 15 tests\electron\electron-app.spec.ts:137:5 › should create page for browser view (524ms)
  ok 16 tests\electron\electron-app.spec.ts:150:5 › should return same browser window for browser view pages (575ms)
  ok 17 tests\electron\electron-app.spec.ts:171:5 › should record video (1.5s)
  ok 18 tests\electron\electron-app.spec.ts:183:5 › should be able to get the first window when with a delayed navigation (2.3s)
  ok 19 tests\electron\electron-app.spec.ts:192:5 › should detach debugger on app-initiated exit (158ms)
  ok 20 tests\electron\electron-app.spec.ts:201:5 › should run pre-ready apis (140ms)
  ok 21 tests\electron\electron-app.spec.ts:205:5 › should resolve app path for folder apps (136ms)
  ok 22 tests\electron\electron-app.spec.ts:211:5 › should return app name / version from manifest (134ms)

  22 passed (41.1s)

Describe the bug

In the log you can see that the tests pass on average in 10 seconds, what happens in the remaining 30 seconds is unclear. Playwright freezes for 30 seconds after the last test is completed.

sometimes this command ends in 10 seconds, but rarely
previous version of playwright also ends this test in 10 seconds

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions