Tests were disabled for a long time because of 66e9dab5f5
so nobody noticed they were failing.
Bug: T303737
Change-Id: I57d0cd39a582beb7720488f2ae2cb5b69d38714f
22 lines
527 B
JavaScript
22 lines
527 B
JavaScript
'use strict';
|
|
|
|
const Page = require( 'wdio-mediawiki/Page' );
|
|
|
|
class DeletePage extends Page {
|
|
get reason() { return $( '#wpReason' ); }
|
|
get watch() { return $( '#wpWatch' ); }
|
|
get submit() { return $( '#wpConfirmB' ); }
|
|
get displayedContent() { return $( '#mw-content-text' ); }
|
|
|
|
open( title ) {
|
|
super.openTitle( title, { action: 'delete' } );
|
|
}
|
|
|
|
async delete( title, reason ) {
|
|
await this.open( title );
|
|
await this.reason.setValue( reason );
|
|
await this.submit.click();
|
|
}
|
|
}
|
|
|
|
module.exports = new DeletePage();
|