test: fix electron bots#41170
Conversation
- Update to electron 42.3.3. - New electron does not install by default, so call `npx install-electron --no` and remove `ELECTRON_SKIP_BINARY_DOWNLOAD` env. See https://www.electronjs.org/docs/latest/breaking-changes#behavior-changed-electron-no-longer-downloads-itself-via-postinstall-script. - Skip some tests that behave differently on Electron. - Move tests that call `context.route()` out of page tests.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Test results for "tests others"1 flaky19962 passed, 670 skipped Merge workflow run. |
Test results for "tests 2"29 failed 35 flaky88736 passed, 4113 skipped, 1 did not run Merge workflow run. |
Electron 42's extract-zip pulls in an incompatible yauzl on newer Node.js, breaking install. Pin yauzl to ^3.3.2 via package.json overrides. electron/electron#51619
Test results for "MCP"7266 passed, 1119 skipped Merge workflow run. |
Test results for "tests 1"6 flaky39504 passed, 774 skipped Merge workflow run. |
| } | ||
|
|
||
| test('electron should work', async ({ exec, tsc, writeFiles, tmpWorkspace }) => { | ||
| await pinYauzl(tmpWorkspace); |
There was a problem hiding this comment.
How is this supposed to work for our users, are they gonna need the same?
npx install-electron --noand removeELECTRON_SKIP_BINARY_DOWNLOADenv. See https://www.electronjs.org/docs/latest/breaking-changes#behavior-changed-electron-no-longer-downloads-itself-via-postinstall-script.context.route()out of page tests.