Tests were disabled for a long time because of 66e9dab5f5
so nobody noticed they were failing.
Bug: T303737
Change-Id: I57d0cd39a582beb7720488f2ae2cb5b69d38714f
22 lines
466 B
JavaScript
22 lines
466 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();
|