goosewobbler / wdio-electron-service-example

Minimal electron app providing a working example of testing using `wdio-electron-service`.
5 stars 4 forks source link

Tests are not starting on M1 even build went fine #24

Closed spamshaker closed 1 year ago

spamshaker commented 1 year ago

Not working on Macbook Pro M1 after executing pnpm i && pnpm run build && pnpm run test

2023-01-15T16:44:47.032Z INFO webdriver: [POST] http://127.0.0.1:9519/session
2023-01-15T16:44:47.032Z INFO webdriver: DATA {
  capabilities: {
    alwaysMatch: { browserName: 'chrome', 'goog:chromeOptions': [Object] },
    firstMatch: [ {} ]
  },
  desiredCapabilities: {
    browserName: 'chrome',
    'goog:chromeOptions': {
      binary: '/wdio-electron-service-example/dist/mac/wdio-electron-service-example.app/Contents/MacOS/wdio-electron-service-example',
      args: [Array],
      windowTypes: [Array]
    }
  }
}

getting the error

2023-01-15T16:35:31.441Z ERROR webdriver: Request failed with status 500 due to unknown error: unknown error: no chrome binary at /dist/mac/wdio-electron-service-example.app/Contents/MacOS/wdio-electron-service-example
spamshaker commented 1 year ago

ok seems like it is generating build dist/mac-arm64 but tests looks into dist/mac/... leaving the issue open as it may need some fixes anyways

goosewobbler commented 1 year ago

@spamshaker thanks, will take a look and update deps

goosewobbler commented 1 year ago

This should be fixed in wdio-electron-service @ 3.5.1

https://github.com/webdriverio-community/wdio-electron-service/pull/53