mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-25 12:33:19 +00:00
09668285d6
Bug: T296187 Change-Id: Iac98690dd49b6e82062973da05ce30c6f08ba8bc
22 lines
482 B
JavaScript
22 lines
482 B
JavaScript
'use strict';
|
|
const Page = require( 'wdio-mediawiki/Page' );
|
|
|
|
class EditPage extends Page {
|
|
|
|
get notices() { return $( '.ve-ui-mwNoticesPopupTool-items' ); }
|
|
|
|
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();
|