angular-docs-cn/scripts/puppeteer-chromedriver-versions.js
George Kalpakas de2f73c131 build: fix instructions and process for updating Chrome version (#40150)
Previously, the instructions and process for updating the version of
Chrome ued in tests assumed that there was always going to be a
ChromeDriver version that corresponded to a Chrome version. For example,
if we wanted to use Chrome v87.0.4272.x, we assumed that there was going
to be ChromeDriver v87.0.4272.x. It turns out that this is not always
the case.

This commit updates the instructions and process for updating the Chrome
version to ensure a valid version of ChromeDriver will be used as well.

PR Close #40150
2020-12-21 14:15:30 -08:00

31 lines
948 B
JavaScript

/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// Mapping of puppeteer releases to their default Chrome version
// derived from https://github.com/puppeteer/puppeteer/blob/master/docs/api.md.
// The puppeteer package.json file contains the compatible Chrome revision such as
// "chromium_revision": "722234" but this does not map easily to the Chrome version
// so we use this mapping here instead.
module.exports = {
'5.1.0': '84.0.4147.0',
'3.3.0': '83.0.4103.0',
'3.2.0': '83.0.4103.0',
'3.1.0': '83.0.4103.0',
'3.0.0': '81.0.4044.0',
'2.1.1': '80.0.3987.0',
'2.1.0': '80.0.3987.0',
'2.0.0': '79.0.3942.0',
'1.20.0': '78.0.3882.0',
'1.19.0': '77.0.3803.0',
'1.17.0': '76.0.3803.0',
'1.15.0': '75.0.3765.0',
'1.13.0': '74.0.3723.0',
'1.12.2': '73.0.3679.0',
};