mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-12-18 16:50:36 +00:00
24 lines
710 B
JavaScript
24 lines
710 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const assert = require( 'assert' ),
|
||
|
EditPage = require( '../pageobjects/edit.page' ),
|
||
|
FixtureContent = require( '../fixturecontent' ),
|
||
|
LoginPage = require( 'wdio-mediawiki/LoginPage' ),
|
||
|
UserPreferences = require( '../userpreferences' );
|
||
|
|
||
|
describe( 'CodeMirror bracket match default', function () {
|
||
|
before( function () {
|
||
|
LoginPage.loginAdmin();
|
||
|
UserPreferences.enableWikitext2010EditorWithCodeMirror();
|
||
|
this.title = FixtureContent.createFixturePage();
|
||
|
} );
|
||
|
|
||
|
it( 'disables highlighting', function () {
|
||
|
EditPage.openForEditing( this.title );
|
||
|
EditPage.clickText();
|
||
|
|
||
|
EditPage.cursorToPosition( 0 );
|
||
|
assert.strictEqual( EditPage.getHighlightedMatchingBrackets(), '' );
|
||
|
} );
|
||
|
} );
|