nightwatchjs / nightwatch

Integrated end-to-end testing framework written in Node.js and using W3C Webdriver API. Developed at @browserstack
https://nightwatchjs.org
MIT License
11.79k stars 1.31k forks source link

v1.7.x failing to read/parse nightwatch.conf.js file correctly #2892

Closed kretschmannj closed 3 years ago

kretschmannj commented 3 years ago

Nightwatch v1.7.x is failing with a ECONNREFUSED error and appears to not be reading/parsing the nightwatch.conf.js file correctly. Specifically, it seems like it's completely ignoring the selenium_host property that I'm specifying.

Here's the profile from my nightwatch.conf.js file ...

    lambdatest: {
      selenium_host: "hub.lambdatest.com",
      selenium_port: 80,
      username: 'kretschmannj',
      access_key: '-------------------------------',
      desiredCapabilities: {
        version: "latest",
        resolution: "1920x1200" // default is 1024x768
      }
  }

I run the test 'node nightwatch -e lambdatest tests/colorado_tests.js' and I get this error ...

When I run with Nightwatch v1.6.4 the test runs and displays ...

i Connected to hub.lambdatest.com on port 80 (4884ms). Using: firefox (91.0) on windows 10.0 platform.

So it looks like version 1.7 is not reading and/or parsing the nightwatch.conf.js file correctly.

I compared v1.6.4 to v1.7.0 and I see several commits that touched settings.selenium_host and I suspect that's where the issue is.

beatfactor commented 3 years ago

Thanks for reporting this. I'll look into it.