Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4106092
toolbar.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
toolbar.js
View Options
'use strict'
;
const
assert
=
require
(
'assert'
);
const
EditPage
=
require
(
'../pageobjects/edit.page'
);
const
Util
=
require
(
'wdio-mediawiki/Util'
);
describe
(
'Toolbar'
,
()
=>
{
let
name
;
beforeEach
(
async
()
=>
{
name
=
Util
.
getTestString
();
await
EditPage
.
openForEditing
(
name
);
await
EditPage
.
toolbar
.
waitForDisplayed
(
{
timeout
:
20000
}
);
}
);
afterEach
(
async
()
=>
{
// T269566: Popup with text
// 'Leave site? Changes that you made may not be saved. Cancel/Leave'
// appears after the browser tries to leave the page with the preview.
await
browser
.
reloadSession
();
}
);
it
(
'should open notices popup as soon as it loads'
,
async
()
=>
{
assert
(
await
EditPage
.
notices
.
isDisplayed
()
);
}
);
it
(
'should open switch editor'
,
async
()
=>
{
await
EditPage
.
switchEditorElement
.
click
();
assert
(
await
EditPage
.
visualEditing
.
isDisplayed
()
);
}
);
it
(
'should open page options'
,
async
()
=>
{
await
EditPage
.
pageOptionsElement
.
click
();
assert
(
await
EditPage
.
options
.
isDisplayed
()
);
}
);
it
(
'should open help popup'
,
async
()
=>
{
await
EditPage
.
helpElement
.
click
();
assert
(
await
EditPage
.
helpPopup
.
isDisplayed
()
);
}
);
// Skipped on 2023-06-21 in 931997 because of T296187
it
.
skip
(
'should open special characters menu'
,
async
()
=>
{
await
EditPage
.
specialCharacterElement
.
click
();
await
EditPage
.
specialCharacterMenu
.
waitForDisplayed
(
{
timeout
:
1000
}
);
assert
(
await
EditPage
.
specialCharacterMenu
.
isDisplayed
()
);
}
);
it
(
'should open insert menu'
,
async
()
=>
{
await
EditPage
.
insert
.
click
();
assert
(
await
EditPage
.
insertMenu
.
isDisplayed
()
);
}
);
it
(
'should open structure options menu'
,
async
()
=>
{
await
EditPage
.
structureOptionsElement
.
click
();
assert
(
await
EditPage
.
bulletListOption
.
isDisplayed
()
);
}
);
it
(
'should open style text options'
,
async
()
=>
{
await
EditPage
.
styleTextElement
.
click
();
assert
(
await
EditPage
.
boldTextStyleOption
.
isDisplayed
()
);
}
);
it
(
'should open format paragraph menu'
,
async
()
=>
{
await
EditPage
.
formatParagraphElement
.
click
();
assert
(
await
EditPage
.
paragraphFormatMenu
.
isDisplayed
()
);
}
);
}
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 19:18 (2 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1c/26/7ad96e8c29b0722280abf20f7aa6
Default Alt Text
toolbar.js (2 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment