Skip to content

[REGRESSION]: 1.28 does not work with electron-serve anymore. #19412

Closed

Description

Repro: https://github.com/andirsun/electron-test

Originally filed here: #18928 (comment)

(base) ➜  electron-test git:(main) ✗ DEBUG=pw:api,pw:browser npx playwright test
Debugger attached.
Debugger attached.

Running 1 test using 1 worker

     1 tests/desktop.spec.test.js:14:1 › renders the first page
  pw:api => selectors.setTestIdAttribute started +0ms
  pw:api => electron.launch started +1ms
  pw:api <= selectors.setTestIdAttribute succeeded +2ms
  pw:browser <launching> /Users/maxschmitt/Developer/tmp/electron-test/node_modules/electron/dist/Electron.app/Contents/MacOS/Electron /Users/maxschmitt/Developer/tmp/electron-test/node_modules/playwright-core/lib/server/electron/loader.js --inspect=0 --remote-debugging-port=0 /Users/maxschmitt/Developer/tmp/electron-test . +0ms
  pw:browser <launched> pid=9227 +10ms
  pw:browser [pid=9227][err] Debugger listening on ws://127.0.0.1:52875/04bbd2b9-877f-4e9e-97c9-cf294853140f +113ms
  pw:browser [pid=9227][err] For help, see: https://nodejs.org/en/docs/inspector +0ms
  pw:browser <ws connecting> ws://127.0.0.1:52875/04bbd2b9-877f-4e9e-97c9-cf294853140f +0ms
  pw:browser [pid=9227][err] Debugger attached. +6ms
  pw:browser <ws connected> ws://127.0.0.1:52875/04bbd2b9-877f-4e9e-97c9-cf294853140f +1ms
  pw:browser [pid=9227][err]  +39ms
  pw:browser [pid=9227][err] DevTools listening on ws://127.0.0.1:52877/devtools/browser/f691d994-fa64-4141-96fa-e400b0b2e5e9 +0ms
  pw:browser <ws connecting> ws://127.0.0.1:52877/devtools/browser/f691d994-fa64-4141-96fa-e400b0b2e5e9 +1ms
  pw:browser <ws connected> ws://127.0.0.1:52877/devtools/browser/f691d994-fa64-4141-96fa-e400b0b2e5e9 +60ms
  pw:api <= electron.launch succeeded +241ms
  pw:api => electronApplication.firstWindow started +1ms
  pw:browser [pid=9227][err] (node:9227) UnhandledPromiseRejectionWarning: Error: protocol.registerSchemesAsPrivileged should be called before app is ready +1ms
  pw:browser [pid=9227][err]     at t.exports (/Users/maxschmitt/Developer/tmp/electron-test/app/background.js:1:32119) +0ms
  pw:browser [pid=9227][err]     at /Users/maxschmitt/Developer/tmp/electron-test/app/background.js:1:34026 +0ms
  pw:browser [pid=9227][err]     at /Users/maxschmitt/Developer/tmp/electron-test/app/background.js:1:35220 +0ms
  pw:browser [pid=9227][err]     at Object.<anonymous> (/Users/maxschmitt/Developer/tmp/electron-test/app/background.js:1:35241) +0ms
  pw:browser [pid=9227][err]     at Module._compile (node:internal/modules/cjs/loader:1116:14) +0ms
  pw:browser [pid=9227][err]     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10) +0ms
  pw:browser [pid=9227][err]     at Module.load (node:internal/modules/cjs/loader:988:32) +0ms
  pw:browser [pid=9227][err]     at Module._load (node:internal/modules/cjs/loader:829:12) +0ms
  pw:browser [pid=9227][err]     at Function.c._load (node:electron/js2c/asar_bundle:5:13343) +0ms
  pw:browser [pid=9227][err]     at Module.require (node:internal/modules/cjs/loader:1012:19) +0ms
  pw:browser [pid=9227][err] (Use `Electron --trace-warnings ...` to show where the warning was created) +0ms  pw:browser [pid=9227][err] (node:9227) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) +0ms
  pw:browser [pid=9227][err] objc[9228]: Class WebSwapCGLLayer is implemented in both /System/Library/Frameworks/WebKit.framework/Versions/A/Frameworks/WebCore.framework/Versions/A/Frameworks/libANGLE-shared.dylib (0x24a98b2e0) and /Users/maxschmitt/Developer/tmp/electron-test/node_modules/electron/dist/Electron.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/libGLESv2.dylib (0x1308193c8). One of the two will be used. Which one is undefined. +157ms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions