Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5988849
highlighting-wikitext2017.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
highlighting-wikitext2017.js
View Options
'use strict'
;
const
assert
=
require
(
'assert'
),
EditPage
=
require
(
'../pageobjects/edit.page'
),
FixtureContent
=
require
(
'../fixturecontent'
),
LoginPage
=
require
(
'wdio-mediawiki/LoginPage'
),
UserPreferences
=
require
(
'../userpreferences'
),
Util
=
require
(
'wdio-mediawiki/Util'
);
// Skipped on 2024-03-20 in 1012801
// Disable as test is consistently failing on CI.
describe
.
skip
(
'CodeMirror bracket match highlighting for the wikitext 2017 editor'
,
()
=>
{
let
title
;
before
(
async
()
=>
{
title
=
Util
.
getTestString
(
'CodeMirror-fixture1-'
);
await
LoginPage
.
loginAdmin
();
await
FixtureContent
.
createFixturePage
(
title
);
await
UserPreferences
.
enableWikitext2017EditorWithCodeMirror
();
}
);
beforeEach
(
async
()
=>
{
await
EditPage
.
openForEditing
(
title
);
await
EditPage
.
visualEditorSave
.
waitForDisplayed
();
assert
(
!
(
await
EditPage
.
wikiEditorToolbar
.
isDisplayed
()
)
);
await
EditPage
.
clickText
();
}
);
it
(
'highlights matching bracket'
,
async
()
=>
{
await
EditPage
.
cursorToPosition
(
0
);
assert
.
strictEqual
(
await
EditPage
.
getHighlightedMatchingBrackets
(),
'[]'
);
}
);
it
(
'matches according to cursor movement'
,
async
()
=>
{
await
EditPage
.
cursorToPosition
(
3
);
assert
.
strictEqual
(
await
EditPage
.
getHighlightedMatchingBrackets
(),
'{}'
);
}
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Oct 4, 00:56 (3 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c7/0e/220aebe08a9022c35d3ed1504377
Default Alt Text
highlighting-wikitext2017.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment