Score:0

Nightwatch not executing in Acquia pipeline

jm flag

I'm trying to execute the Nightwatch test on Acquia pipeline for every PR raised

I have created a custom BLT command that executes the test cases of Nightwatch. it is executing fine locally but it fails on the pipeline. The chrome driver is failing to connect. Below is detailed error.

[Tests/Toolbar Api Test] Test Suite

  • Connecting to localhost on port 9515...

⚠ Error connecting to localhost on port 9515.

[Tests/Toolbar Test] Test Suite

  • Connecting to localhost on port 9515...

⚠ Error connecting to localhost on port 9515.


Chromedriver is working well locally on Lando based project, but it can't connect while executing in the pipeline thus resulting in an error, Can anyone help?

Or is there any better approach to execute the Nightwatch test case on the pipeline?

id flag
Is this setup documented by Acquia as working? Are customers allowed to run servers (for example, on port 9515) on any given port?
Jaswin Singh avatar
jm flag
@cilefen No, there is no document available by Acquia, Also I have used the default port assigned to the chrome driver. I can't find any document detailing port no. to be used.
id flag
You can choose other ports, see https://github.com/nightwatchjs/nightwatch/issues/2115, but ultimately you must contact Acquia support to determine which ports, if any, you may use.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.