mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
361741ec86
This was working before somehow… but according to the CodeMirror docs, it never syncs with the textarea automatically, so regardless this is a necessary safeguard at least. Repro steps: 1) Have CodeMirror turned on 2) Open a page for editing 3) Add content 4) Toggle CodeMirror off With this patch, it should now always be synced. Also add selenium test to ensure this doesn't break again. Bug: T317243 Change-Id: Ie44e62fe5838bf32f40c6a3595ec3f541380cfe1 |
||
---|---|---|
.. | ||
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]