mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(msedge): install with multiple artifacts (#27939)
The API response looked like this: <img width="1584" alt="image" src="https://github.com/microsoft/playwright/assets/17984549/89d32ad4-8770-48c3-b562-231ae7b9ef3b"> -> multiple entries for `Windows` and `X64`, but some without artifacts. -> We filter now for `artifacts.length > 0` which seems like a healthy change. Fixes https://github.com/microsoft/playwright/issues/22841
This commit is contained in:
parent
a7fd515626
commit
f9c4955fe8
@ -918,7 +918,7 @@ export class Registry {
|
||||
darwin: { platform: 'MacOS', arch: 'universal', artifact: 'pkg' },
|
||||
win32: { platform: 'Windows', arch: 'x64', artifact: 'msi' },
|
||||
} as any)[process.platform];
|
||||
const release = searchConfig ? product.releases.find((release: any) => release.platform === searchConfig.platform && release.architecture === searchConfig.arch) : null;
|
||||
const release = searchConfig ? product.releases.find((release: any) => release.platform === searchConfig.platform && release.architecture === searchConfig.arch && release.artifacts.length > 0) : null;
|
||||
const artifact = release ? release.artifacts.find((artifact: any) => artifact.artifactname === searchConfig.artifact) : null;
|
||||
if (artifact)
|
||||
scriptArgs.push(artifact.location /* url */);
|
||||
|
Loading…
x
Reference in New Issue
Block a user