2017-03-28 13:59:35 +00:00
|
|
|
'use strict';
|
|
|
|
const Page = require( 'wdio-mediawiki/Page' );
|
|
|
|
|
|
|
|
class EditPage extends Page {
|
|
|
|
|
2022-03-21 14:54:47 +00:00
|
|
|
get toolbar() { return $( '.ve-init-mw-desktopArticleTarget-toolbar-open' ); }
|
2022-04-04 15:28:07 +00:00
|
|
|
get veRootNode() { return $( '.ve-ce-rootNode[role="textbox"]' ); }
|
2017-03-28 13:59:35 +00:00
|
|
|
|
|
|
|
openForEditing( title ) {
|
|
|
|
super.openTitle( title, { veaction: 'edit', vehidebetadialog: 1, hidewelcomedialog: 1 } );
|
|
|
|
}
|
|
|
|
|
2022-02-07 15:53:17 +00:00
|
|
|
activationComplete() {
|
|
|
|
return browser.executeAsync( function ( done ) {
|
|
|
|
mw.hook( 've.activationComplete' ).add( function () {
|
|
|
|
done();
|
|
|
|
} );
|
|
|
|
} );
|
|
|
|
}
|
|
|
|
|
2017-03-28 13:59:35 +00:00
|
|
|
}
|
|
|
|
module.exports = new EditPage();
|