Mostly this has a bunch of whitespace changes from the template-curly-spacing and brace-style rules being set to align with other spacing rules. Change-Id: I4609c52a4ef426ad1f35fb4bfe447bb08323a8e8
24 lines
469 B
JavaScript
24 lines
469 B
JavaScript
'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();
|