Use Chrome for Testing to fix Selenium tests

This commit is contained in:
Nathan Bierema 2025-06-17 18:53:26 -04:00
parent 61632768a7
commit c4ff3fa345
2 changed files with 2 additions and 1 deletions

View File

@ -16,7 +16,7 @@
"build:examples": "babel-node examples/buildAll.js",
"clean": "rimraf dist && rimraf chrome/dist && rimraf edge/dist && rimraf firefox/dist",
"test:app": "cross-env BABEL_ENV=test jest test/app",
"test:chrome": "jest test/chrome",
"test:chrome": "cross-env SE_FORCE_BROWSER_DOWNLOAD=true jest test/chrome",
"build:test:electron:fixture": "webpack --config test/electron/fixture/webpack.config.js",
"test:electron": "pnpm run build:test:electron:fixture && jest test/electron",
"test": "pnpm run test:app && pnpm run test:chrome && pnpm run test:electron",

View File

@ -13,6 +13,7 @@ describe('Chrome extension', function () {
beforeAll(async () => {
driver = new webdriver.Builder()
.forBrowser(webdriver.Browser.CHROME)
.setChromeOptions(
new chrome.Options()
.setBrowserVersion('stable')