mediawiki-extensions-Visual.../tests/selenium/pageobjects/edit.page.js

22 lines
482 B
JavaScript
Raw Normal View History

'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();