mediawiki-extensions-Visual.../tests/selenium
Esther Akinloose 9de7c6743d selenium: Improve debugging
Looks like Selenium tests are flaky. To improve debugging:

- Move code from beforeEach hook to specs.
  (Video recording happens only in specs, not in hooks.)

- Increase logLevel from error to info.

Bug: T296187
Change-Id: Iffcfae9a76085670eb8858fbcf622e596a4ff2f0
2022-05-20 16:44:23 +02:00
..
pageobjects selenium: Content Editable should save an edit 2022-05-16 15:11:56 +01:00
specs selenium: Improve debugging 2022-05-20 16:44:23 +02:00
.eslintrc.json eslint: Lint all files except those in .eslintignore 2022-04-13 15:44:49 +01:00
README.md
wdio.conf.js selenium: Improve debugging 2022-05-20 16:44:23 +02:00

Selenium tests

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

Setup

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

Run all tests

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]