mediawiki-extensions-CodeMi.../tests/selenium/highlightingfeatureflag.js
Adam Wight d6c6dbd73a Browser tests for CodeMirror (wikitext 2010 editor)
Basic tests to show that the highlighting classes have been attached
to the expected elements.

TODO in later patches:
* tests for the wikitext 2017 editor

Bug: T270240
Change-Id: I01ebd9881d38dd877f19ee3bb4fdcbb74d43afaf
2021-01-08 11:01:13 +01:00

15 lines
265 B
JavaScript

'use strict';
// Temporary, can be removed along with the feature flag.
class HighlightingFeatureFlag {
enable() {
browser.setCookies( {
name: 'mw-codemirror-bracket-matching-test',
value: '1'
} );
}
}
module.exports = new HighlightingFeatureFlag();