Skip to content

Commit

Permalink
update chrome version
Browse files Browse the repository at this point in the history
  • Loading branch information
poonamyadav252 committed Sep 19, 2023
1 parent db0748f commit 970b828
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
32 changes: 17 additions & 15 deletions packages/nuxeo-web-ui-ftest/scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,21 +116,23 @@ if (process.env.DRIVER_VERSION == null) {
if (match) {
const checkVersion = match[1];
try {
done = fetch(`https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${checkVersion}`).then((response) => {
if (response.ok) {
return response
.text()
.then((newDriverVersion) => {
// eslint-disable-next-line no-console
console.log(`ChromeDriver ${newDriverVersion} needed.`);
process.env.DRIVER_VERSION = newDriverVersion;
})
.catch((e) => {
console.error('unable to parse ChromeDriver version: ', e);
});
}
console.error('unable to fetch ChromeDriver version: ', response);
});
done = fetch(`https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_${checkVersion}`).then(
(response) => {
if (response.ok) {
return response
.text()
.then((newDriverVersion) => {
// eslint-disable-next-line no-console
console.log(`ChromeDriver ${newDriverVersion} needed.`);
process.env.DRIVER_VERSION = newDriverVersion;
})
.catch((e) => {
console.error('unable to parse ChromeDriver version: ', e);
});
}
console.error('unable to fetch ChromeDriver version: ', response);
},
);
} catch (e) {
console.error('unable to fetch ChromeDriver version: ', e);
}
Expand Down
2 changes: 1 addition & 1 deletion plugin/a11y/getDriverVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const match = version && version.match(/([0-9]+)\./);
if (match) {
const checkVersion = match[1];
try {
fetch(`https://chromedriver.storage.googleapis.com/LATEST_RELEASE_${checkVersion}`).then((response) => {
fetch(`https://googlechromelabs.github.io/chrome-for-testing/LATEST_RELEASE_${checkVersion}`).then((response) => {
if (response.ok) {
return response
.text()
Expand Down

0 comments on commit 970b828

Please sign in to comment.