Page MenuHomePhabricator

Tried to run selenium tests on my local machine

Authored By
Anjali_Kumari_41
Mar 30 2021, 3:27 PM
Size
1 KB
Referenced Files
None
Subscribers
None

Tried to run selenium tests on my local machine

I was trying to run the selenium tests to complete my task [[https://phabricator.wikimedia.org/P8206 | microtask]].
However I am facing the following issue.
npm run selenium-test
> @ selenium-test /mnt/c/users/anjali kumari/onedrive/desktop/core
> wdio ./tests/selenium/wdio.conf.js
2021-03-30T15:00:21.466Z DEBUG @wdio/config:utils: Couldn't find ts-node package, no TypeScript compiling
Execution of 6 spec files started at 2021-03-30T15:00:34.421Z
[0-0] RUNNING in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
[0-0] 2021-03-30T15:01:38.855Z ERROR @wdio/runner: Error: connect ECONNREFUSED 127.0.0.1:34291
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1146:16)
[0-0] Error: connect ECONNREFUSED 127.0.0.1:34291
[0-0] 2021-03-30T15:01:43.882Z ERROR @wdio/runner: Error: Some reporters are still unsynced: Video
at Timeout.<anonymous> (/mnt/c/users/anjali kumari/onedrive/desktop/core/node_modules/@wdio/runner/build/reporter.js:86:25)
at listOnTimeout (internal/timers.js:554:17)
at processTimers (internal/timers.js:497:7)
[0-0] FAILED in chrome - /tests/selenium/wdio-mediawiki/specs/BlankPage.js
Steps to reproduce:
I followed the [[https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/%2B/master/DEVELOPERS.md| Mediawiki-docker setup]].
1) Docker and docker-compose installation
2) .env file and docker-compose.override.yml created.
3) echo "MW_DOCKER_UID=$(id -u)
MW_DOCKER_GID=$(id -g)" >> .env
4) docker-compose up -d
docker-compose exec mediawiki composer update
docker-compose exec mediawiki /bin/bash /docker/install.sh
5) Deleted LocalSettings.php and cache/sqlite
6) git clone "https://gerrit.wikimedia.org/r/mediawiki/extensions/examples" extensions/examples
echo "wfLoadExtension( 'examples' );" >> LocalSettings.php
docker-compose exec mediawiki php maintenance/update.php
7) npm ci
npm run selenium-test

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8939721
Default Alt Text
Tried to run selenium tests on my local machine (1 KB)

Event Timeline