Tests were disabled for a long time because of 66e9dab5f5
so nobody noticed they were failing.
Bug: T303737
Change-Id: I57d0cd39a582beb7720488f2ae2cb5b69d38714f
21 lines
506 B
JavaScript
21 lines
506 B
JavaScript
'use strict';
|
|
|
|
const Page = require( 'wdio-mediawiki/Page' );
|
|
|
|
class RestorePage extends Page {
|
|
get reason() { return $( '#wpComment' ); }
|
|
get submit() { return $( '#mw-undelete-submit' ); }
|
|
get displayedContent() { return $( '#mw-content-text' ); }
|
|
|
|
open( subject ) {
|
|
super.openTitle( 'Special:Undelete/' + subject );
|
|
}
|
|
|
|
async restore( subject, reason ) {
|
|
await this.open( subject );
|
|
await this.reason.setValue( reason );
|
|
await this.submit.click();
|
|
}
|
|
}
|
|
|
|
module.exports = new RestorePage();
|