mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-16 10:59:56 +00:00
1e030bcde5
Bug: T296187 Change-Id: I7a7808bf5cabdccc3f0a01ccecfdadeb7fdc9b91
23 lines
565 B
JavaScript
23 lines
565 B
JavaScript
'use strict';
|
|
const Page = require( 'wdio-mediawiki/Page' );
|
|
|
|
class EditPage extends Page {
|
|
|
|
get toolbar() { return $( '.ve-init-mw-desktopArticleTarget-toolbar-open' ); }
|
|
get veRootNode() { return $( '.ve-ce-rootNode[role="textbox"]' ); }
|
|
|
|
openForEditing( title ) {
|
|
super.openTitle( title, { veaction: 'edit', vehidebetadialog: 1, hidewelcomedialog: 1 } );
|
|
}
|
|
|
|
activationComplete() {
|
|
return browser.executeAsync( function ( done ) {
|
|
mw.hook( 've.activationComplete' ).add( function () {
|
|
done();
|
|
} );
|
|
} );
|
|
}
|
|
|
|
}
|
|
module.exports = new EditPage();
|