Skip to content

Commit

Permalink
WEBUI-1628: chrome for testing versoion logged
Browse files Browse the repository at this point in the history
  • Loading branch information
rahuljain-dev committed Jan 31, 2025
1 parent 6fad225 commit a439a03
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/nuxeo-web-ui-ftest/scripts/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,28 @@ if (process.env.DRIVER_VERSION == null) {
console.error('unable to fetch ChromeDriver version: ', e);
}
}
try {
done = fetch(
`https://googlechromelabs.github.io/chrome-for-testing/last-known-good-versions-with-downloads.json`,
).then((response) => {
if (response.ok) {
return response
.text()
.then((response1) => {
const obj = JSON.parse(response1);
const cftVersion = obj.channels.Stable.version;
// eslint-disable-next-line no-console
console.log(`ChromeForTesting ${cftVersion} detected.`);
})
.catch((e) => {
console.error('unable to parse Chrome for testing browser version: ', e);
});
}
console.error('unable to parse Chrome for testing browser version: ', response);
});
} catch (e) {
console.error('unable to parse Chrome for testing browser version ', e);
}
}

done.finally(() => {
Expand Down

0 comments on commit a439a03

Please sign in to comment.