mediawiki-extensions-AbuseF.../tests/selenium
Daimona Eaytoy 6eedf26dc4 tests: Improve selenium tests
- Do not try to switch the editor if CodeEditor is not installed
- Make sure that the state before the test runs is known
- Add more specific assertion on error message
- Add missing await to async function call
- Re-enable test disabled in I47b4794c4098a25696ffe42c42d00fd767971b5d.
  Selenium tests were run 100 times in CI in PS2 and they always passed.

Bug: T300790
Depends-On: I5babbdadf21e9f951f69de93bfca5213a50965aa
Change-Id: Id9ca618dcc59396980b1ee38819677583107738c
(cherry picked from commit dd48840019)
2023-08-24 04:20:44 +00:00
..
pageobjects tests: Improve selenium tests 2023-08-24 04:20:44 +00:00
specs tests: Improve selenium tests 2023-08-24 04:20:44 +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]