Utilizing typescript in conjunction with cucumber and webdriverio to run automated tests on a remote Linux agent. The script runs smoothly in headless mode on the pipeline, but encounters errors when the headless option is removed from chromeOptions.
Currently, I have '--headless' included in the chromedriver chromeOptions of webdriverio, allowing the tests to execute on the Linux remote agent.
However, upon attempting to run the tests in non-headless mode on the Linux remote agent, an error arises: connect ECONNREFUSED 127.0.0.1:42947
Are there any installations necessary on the Linux remote agent before launching the chromedriver? How can this error be resolved?