Alright, try that

This commit is contained in:
Nathan Bierema 2023-12-07 18:25:25 -05:00
parent f25f42d071
commit 80eafff956
5 changed files with 24 additions and 3 deletions

View File

@ -31,4 +31,6 @@ jobs:
- name: Test
uses: coactions/setup-xvfb@v1
with:
run: pnpm run test:all
run: |
pnpm --filter remotedev-redux-devtools-extension exec chromedriver &
pnpm run test:all

View File

@ -60,6 +60,7 @@
"@types/styled-components": "^5.1.30",
"cross-env": "^7.0.3",
"electron": "^27.0.4",
"electron-chromedriver": "^27.1.3",
"esbuild": "^0.19.5",
"eslint": "^8.53.0",
"eslint-config-airbnb": "^19.0.4",

View File

@ -14,7 +14,9 @@ describe('Chrome extension', function () {
beforeAll(async () => {
driver = new webdriver.Builder()
.setChromeOptions(
new chrome.Options().addArguments(`load-extension=${path}`),
new chrome.Options()
.setBrowserVersion('stable')
.addArguments(`load-extension=${path}`),
)
.forBrowser('chrome')
.build();
@ -57,7 +59,7 @@ describe('Chrome extension', function () {
);
it('should get actions list', async () => {
const url = 'http://zalmoxisus.github.io/examples/router/';
const url = 'https://zalmoxisus.github.io/examples/router/';
await driver.executeScript(`window.open('${url}')`);
await delay(2000);

View File

@ -12,6 +12,7 @@ describe('DevTools panel for Electron', function () {
beforeAll(async () => {
driver = new webdriver.Builder()
.usingServer('http://localhost:9515')
.setChromeOptions(
new chrome.Options()
.setChromeBinaryPath(electronPath)

View File

@ -162,6 +162,9 @@ importers:
electron:
specifier: ^27.0.4
version: 27.0.4
electron-chromedriver:
specifier: ^27.1.3
version: 27.1.3
esbuild:
specifier: ^0.19.5
version: 0.19.5
@ -13636,6 +13639,18 @@ packages:
jake: 10.8.7
dev: true
/electron-chromedriver@27.1.3:
resolution: {integrity: sha512-dJ9dQTvT1zGLfOc5FhgRAptHuL6IbLMSkc+bccjI10WOCKedz9vHNE/p1x+4Nl3Yx/zNb2KReCEVsa/mIqI5YQ==}
engines: {node: '>=10.12.0'}
hasBin: true
requiresBuild: true
dependencies:
'@electron/get': 2.0.3
extract-zip: 2.0.1
transitivePeerDependencies:
- supports-color
dev: true
/electron-to-chromium@1.4.582:
resolution: {integrity: sha512-89o0MGoocwYbzqUUjc+VNpeOFSOK9nIdC5wY4N+PVUarUK0MtjyTjks75AZS2bW4Kl8MdewdFsWaH0jLy+JNoA==}