8000 GitHub Β· Where software is built
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Spectron Cannot run test with electron with react and jestΒ #812
Open
@repl-shenoy-sukumaran

Description

@repl-shenoy-sukumaran

Webdriver error prevent the app from starting (but actually apps opens)

 javascript error: javascript error: Cannot convert undefined or null to object
      (Session info: chrome=87.0.4280.60)

       8 | 
       9 |   beforeEach(async () => {
    > 10 |     await app.start();
         |     ^
      11 |   })
      12 | 
      13 |   afterEach(async () => {

      at Object.getErrorFromResponseBody (node_modules/webdriver/build/utils.js:94:12)
      at WebDriverRequest._request (node_modules/webdriver/build/request.js:134:31)
      at Browser.wrapCommandFn (node_modules/@wdio/utils/build/shim.js:63:29)
      at Browser.wrapCommandFn (node_modules/@wdio/utils/build/shim.js:63:29)
      at Object.<anonymous> (src/tests/lauch.test.js:10:5)

Versions

Electron: ^11.0.0
Spectron: ^13.0.0

Steps to reproduce**

image

Am i missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0