Skip to content

Commit cb9bc69

Browse files
committed
chore: use packed webdriverio & puppeteer
1 parent 215af6b commit cb9bc69

File tree

6 files changed

+285
-534
lines changed

6 files changed

+285
-534
lines changed

package.json

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@
1515
"pnpm": ">=10.12.0"
1616
},
1717
"pnpm": {
18-
"onlyBuiltDependencies": ["electron", "electron-nightly"]
18+
"onlyBuiltDependencies": ["electron", "electron-nightly"],
19+
"overrides": {
20+
"@puppeteer/browsers": "file:./puppeteer-browsers-2.11.0.tgz",
21+
"@wdio/utils": "file:./wdio-utils-9.19.1.tgz"
22+
}
1923
},
2024
"packageManager": "pnpm@10.27.0+sha512.72d699da16b1179c14ba9e64dc71c9a40988cbdc65c264cb0e489db7de917f20dcf4d64d8723625f2969ba52d4b7e2a1170682d9ac2a5dcaeaab732b7e16f04a",
2125
"scripts": {
@@ -61,23 +65,23 @@
6165
"update:all": "pnpm catalog:update --default && pnpm catalog:update --next && pnpm up -iLr"
6266
},
6367
"devDependencies": {
64-
"@biomejs/biome": "2.3.11",
68+
"@biomejs/biome": "2.3.10",
6569
"@inquirer/prompts": "^8.1.0",
6670
"@types/node": "^25.0.3",
67-
"@typescript-eslint/parser": "^8.52.0",
68-
"@vitest/eslint-plugin": "^1.6.6",
71+
"@typescript-eslint/parser": "^8.51.0",
72+
"@vitest/eslint-plugin": "^1.6.4",
6973
"chalk": "^5.6.2",
7074
"cross-env": "^10.1.0",
7175
"eslint": "^9.39.2",
72-
"eslint-plugin-wdio": "^9.23.0",
73-
"globals": "^17.0.0",
76+
"eslint-plugin-wdio": "^9.16.2",
77+
"globals": "^16.5.0",
7478
"husky": "^9.1.7",
7579
"lint-staged": "^16.2.7",
7680
"ora": "^9.0.0",
7781
"package-versioner": "^0.9.3",
7882
"shx": "^0.4.0",
7983
"tsx": "^4.21.0",
80-
"turbo": "2.7.3",
84+
"turbo": "2.7.2",
8185
"typescript": "^5.9.3",
8286
"yaml": "^2.8.2"
8387
},

packages/electron-service/src/launcher.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,10 @@ export default class ElectronLaunchService implements Services.ServiceInstance {
128128
const chromiumVersion = await getChromiumVersion(electronVersion);
129129
log.info(`Found Electron v${electronVersion} with Chromedriver v${chromiumVersion}`);
130130

131+
// Expose the chromium version for WDIO to use during chromedriver download
132+
// The presence of wdio:electronServiceOptions already indicates electron usage
133+
(cap as any)['wdio:chromiumVersion'] = chromiumVersion;
134+
131135
if (Number.parseInt(electronVersion.split('.')[0], 10) < 26 && !cap['wdio:chromedriverOptions']?.binary) {
132136
const invalidElectronVersionError = new SevereServiceError(
133137
'Electron version must be 26 or higher for auto-configuration of Chromedriver. If you want to use an older version of Electron, you must configure Chromedriver manually using the wdio:chromedriverOptions capability',

packages/native-types/src/electron.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,10 @@ type ElectronServiceCustomCapability = {
353353
* custom capabilities to configure the Electron service
354354
*/
355355
'wdio:electronServiceOptions'?: ElectronServiceOptions;
356+
/**
357+
* Chromium version for chromedriver fallback sources (automatically set by service)
358+
*/
359+
'wdio:chromiumVersion'?: string;
356360
};
357361

358362
type ElectronServiceRequestedStandaloneCapabilities = Capabilities.RequestedStandaloneCapabilities &

0 commit comments

Comments
 (0)