Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5984487
edit.page.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
789 B
Referenced Files
None
Subscribers
None
edit.page.js
View Options
'use strict'
;
const
Page
=
require
(
'wdio-mediawiki/Page'
);
class
EditPage
extends
Page
{
get
content
()
{
return
$
(
'#wikitext-editor'
);
}
get
displayedContent
()
{
return
$
(
'#mw-content-text .mw-parser-output'
);
}
get
heading
()
{
return
$
(
'h1.mw-first-heading'
);
}
// Sync with src/mobile.editor.overlay/EditorOverlayBase.js in MobileFrontend
get
next
()
{
return
$
(
'.mf-icon-next-invert'
);
}
get
save
()
{
return
$
(
'button.cdx-button'
);
}
openForEditing
(
title
)
{
super
.
openTitle
(
title
,
{
action
:
'edit'
,
mobileaction
:
'toggle_view_mobile'
}
);
}
edit
(
name
,
content
)
{
this
.
openForEditing
(
name
);
this
.
content
.
setValue
(
content
);
this
.
next
.
click
();
this
.
save
.
click
();
browser
.
acceptAlert
();
}
}
module
.
exports
=
new
EditPage
();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Oct 3, 23:22 (2 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
ae/1f/ca20ff2f4bf25afdaee4655e69c3
Default Alt Text
edit.page.js (789 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment