mediawiki-extensions-Revisi.../tests/selenium
sahil 45b95f90f3 selenium: Upgrade WebdriverIO to v7
Update npm packages: @wdio/* and webdriverio.

Also adding a fallback for the case, that the slider does
not open as expected.

It seems, that the update is causing some issues when
waiting for the module state. Waiting for the lazy module
in DiffPage.ready() should make sure, that the event to
trigger the opening of the slider is in place. This seems
to fail sometimes.

Bug: T274579
Change-Id: Icd597fc5aaa857879a8af310166867d433ba0678
2021-07-02 17:36:55 +05:30
..
pageobjects selenium: Upgrade WebdriverIO to v7 2021-07-02 17:36:55 +05:30
specs selenium: Update wdio-mediawiki and fix window resizing 2021-05-27 10:17:30 +02:00
.eslintrc.json build: Update eslint-config-wikimedia to 0.16.1 2020-06-16 15:13:36 +01:00
README.md selenium: Update README.md file 2021-05-24 17:59:49 +00:00
wdio.conf.js selenium: Update wdio-mediawiki and fix window resizing 2021-05-27 10:17:30 +02:00

Selenium tests

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

Setup

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

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]