mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
d927b01ec1
In Idc0abb64eb we added support for 'encapsulateSelection' and multiple cursors, but broke other jQuery.textSelection functionality in the process. In this commit, we move the logic to a dedicated class, and more fully and accurately mimic the native implementation. All functionality in WikiEditor should now be supported. Bug: T359671 Follow-Up: Idc0abb64eb036fa4a60382aca401d1dba1722405 Change-Id: I9b947d80616bd4c4372b981b2271a281d1fc0252 |
||
---|---|---|
.. | ||
pageobjects | ||
specs | ||
.eslintrc.json | ||
fixturecontent.js | ||
README.md | ||
userpreferences.js | ||
wdio.conf.js |
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]