Topic on Talk:Selenium/Getting Started/Run tests using Fresh

Summary by ZFilipin (WMF)

No reply in 5 months. I assume it's resolved. Please reopen if not.

KHarlan (WMF) (talkcontribs)

The example on the page doesn't work for me. After running fresh-node and then npm ci && npm run selenium I get:

chromedriver running with PID 110 Starting ChromeDriver 71.0.3578.80 on port 4444 Only local connections are allowed. [1569232858.798][SEVERE]: bind() returned an error, errno=99: Cannot assign requested address (99)

And later during test execution:

connect ECONNREFUSED 127.0.0.1:8080

Krinkle (talkcontribs)

@KHarlan (WMF) Is 127.0.0.1:8080 the address of MW_SERVER?


I suspected at first that maybe the Docker networking layer requires a hostname (even just "localhost") to go from the container to the outside, but that's not the case. I'm able to reach the Nginx server from mwddd within the Fresh container by using 127.0.0.1:8080.

Can you try the following?


host$ echo "$MW_SERVER"
host$ curl 127.0.0.1:8080 | head
host$ fresh-node -net -root
nobody@instance$ apt-get update && apt-get install curl
nobody@instance$ curl 127.0.0.1:8080 | head