Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4138113
undo.page.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
469 B
Referenced Files
None
Subscribers
None
undo.page.js
View Options
'use strict'
;
const
Page
=
require
(
'wdio-mediawiki/Page'
);
class
UndoPage
extends
Page
{
get
save
()
{
return
$
(
'#wpSave'
);
}
async
undo
(
title
,
previousRev
,
undoRev
)
{
await
super
.
openTitle
(
title
,
{
action
:
'edit'
,
undoafter
:
previousRev
,
undo
:
undoRev
,
// T276783: suppress welcome dialog that would prevent save if VisualEditor is installed
vehidebetadialog
:
1
}
);
await
this
.
save
.
click
();
}
}
module
.
exports
=
new
UndoPage
();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 19, 14:30 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b9/2c/fc95e8c84930fefb8198e0e700ea
Default Alt Text
undo.page.js (469 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment