These are from 2018, prior to introducing wdio-mediawiki in
commit 16a4d9da7b. Some extensions referenced these pageobjects
files through escalating "../../" references.
None of these are seen in Codesearch anymore, as well as no
references to these deprecated methods by other means.
Change-Id: Idbc373f13f9767cecd6404922b5c9773d796dda5
20 lines
488 B
JavaScript
20 lines
488 B
JavaScript
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' } );
|
|
}
|
|
|
|
delete( title, reason ) {
|
|
this.open( title );
|
|
this.reason.setValue( reason );
|
|
this.submit.click();
|
|
}
|
|
}
|
|
|
|
module.exports = new DeletePage();
|