mediawiki-extensions-CodeMi.../tests/selenium
Thiemo Kreuz be08e04309 Reduce noise in syntax highlighting tests
* What we care about is the <pre>. The class="CodeMirror-line" is
  added to every <pre>. We don't really learn anything new when we
  include it in our tests.
* Testing the ARIA role is testing a CodeMirror feature, not a
  feature of the mediawiki mode under test.

Change-Id: I33bfedb304228240c4e835cc983117668c398c61
2021-12-16 06:53:47 +00:00
..
pageobjects Refine bracket matching styling 2021-03-08 09:26:07 +01:00
specs Reduce noise in syntax highlighting tests 2021-12-16 06:53:47 +00:00
.eslintrc.json Browser tests for CodeMirror (wikitext 2010 editor) 2021-01-08 11:01:13 +01:00
fixturecontent.js Browser tests for CodeMirror (wikitext 2010 editor) 2021-01-08 11:01:13 +01:00
highlightingfeatureflag.js Browser tests for CodeMirror (wikitext 2010 editor) 2021-01-08 11:01:13 +01:00
README.md selenium: Update README.md file 2021-05-24 18:10:43 +00:00
userpreferences.js Browser tests for CodeMirror (wikitext 2017 editor) 2021-01-11 12:47:49 +01:00
wdio.conf.js selenium: Update wdio-mediawiki 2021-06-21 19:36:43 +05:30

Selenium tests

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

Setup

See https://www.mediawiki.org/wiki/Extension:CodeMirror

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]