chore: install Chromium to the same path as Chrome (#9922)

This commit is contained in:
Alex Rudenko 2023-03-28 10:30:25 +02:00 committed by GitHub
parent b738a0e485
commit a88322e947
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -41,7 +41,12 @@ export class Cache {
} }
browserRoot(browser: Browser): string { browserRoot(browser: Browser): string {
return path.join(this.#rootDir, browser); // Chromium is a special case for backward compatibility: we install it in
// the Chrome folder.
return path.join(
this.#rootDir,
browser === Browser.CHROMIUM ? Browser.CHROME : browser
);
} }
installationDir( installationDir(

View File

@ -39,7 +39,7 @@ describe('Chromium', () => {
buildId: '123', buildId: '123',
cacheDir: 'cache', cacheDir: 'cache',
}), }),
path.join('cache', 'chromium', 'linux-123', 'chrome-linux', 'chrome') path.join('cache', 'chrome', 'linux-123', 'chrome-linux', 'chrome')
); );
}); });