Jump to content

Talk:Selenium/Getting Started/Run tests using Fresh

About this board

Error with dependency wdio-mediawiki

2
Summary by ZFilipin (WMF)

no reply

130.251.216.189 (talkcontribs)

I can't get this example working, everything went fine until I run npm ci, then I get this error:

ENOENT: no such file or directory, symlink '../tests/selenium/wdio-mediawiki' -> '/mediawiki/node_modules/wdio-mediawiki'


However, the directory tests/selenium/wdio-mediawiki is present. I really don't understand why it's failing.

Tjanks in advance

ZFilipin (WMF) (talkcontribs)

Hi! I was not able to reproduce the problem. I've followed instructions from the page, and tests run just fine. Could you please try again and post the entire terminal output, including installing dependencies?

The best way to report the problem would be via Phabricator at https://phabricator.wikimedia.org/. Please add zeljkofilipin to subscribers when creating the task.

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
There are no older topics