mediawiki-extensions-AbuseF.../tests/selenium
Peter Wangai 9a1fd80168 selenium: Refactor WebdriverIO tests from sync to async mode
WebdriverIO has dropped support of sync mode, hence changed to async.

Update npm packages: @wdio/*, wdio-mediawiki
because async mode needs at least @wdio v7.9.

Remove npm packages: @wdio/dot-reporter and @wdio/sync.

Bug: T300790
Bug: T345873
Depends-On: I8a2ba7f87496b19cc22c347088d52e56741cac71
Depends-On: I6eca769ea508b4163ccbea78c7a1e2559dfed7ad
Change-Id: Ifcc95a8c7e47ba4513f6910620ecce83e1ead15a
(cherry picked from commit 00ac95decd)
2023-09-08 07:20:46 +00:00
..
pageobjects selenium: Refactor WebdriverIO tests from sync to async mode 2023-09-08 07:20:46 +00:00
specs selenium: Refactor WebdriverIO tests from sync to async mode 2023-09-08 07:20:46 +00:00
.eslintrc.json eslint: Update to eslint-config-wikimedia 0.16.0 2020-06-08 21:17:50 -04:00
README.md Selenium: update README.md file 2021-05-07 18:45:07 +05:30
wdio.conf.js selenium: Run test suites concurrently 2022-01-06 15:09:09 +00:00

Selenium tests

For more information see https://www.mediawiki.org/wiki/Selenium

Setup

See https://www.mediawiki.org/wiki/MediaWiki-Docker/Extension/AbuseFilter

Run all specs

npm run selenium-test

Run specific tests

Filter by file name:

npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME]

Filter by file name and test name:

npm run selenium-test -- --spec tests/selenium/specs/[FILE-NAME] --mochaOpts.grep [TEST-NAME]