mediawiki-extensions-Popups/tests/selenium
Jon Robson a11d459ef1 Selenium: More explicitly target reference links
The previous selector in the case of the first reference link
matches two elements - one in the "Reference links" section
and one in the "References" section.

My hunch is this leads to the test failures we have been seeing

Bug: T344072
Change-Id: Icda37b4f46add4049344f7a8c452082d7b0df5c8
2023-09-21 22:48:43 +00:00
..
fixtures selenium: run tests concurrently 2023-06-30 08:52:47 +02:00
pageobjects Selenium: More explicitly target reference links 2023-09-21 22:48:43 +00:00
specs Selenium: More explicitly target reference links 2023-09-21 22:48:43 +00:00
.eslintrc.json Discourage jQuery usage in Popups extension 2023-06-13 15:39:57 -07:00
README.md selenium: Update README.md file 2021-05-24 18:04:51 +00:00
wdio.conf.js selenium: run tests concurrently 2023-06-30 08:52:47 +02:00

Selenium tests

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

Setup

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

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]