mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-20 10:11:12 +00:00
e9ee23aace
Bug: T296187 Change-Id: I5a48662bb271fd49b6cfa0365e4775c8865dc5c7
29 lines
959 B
JavaScript
29 lines
959 B
JavaScript
'use strict';
|
|
const Page = require( 'wdio-mediawiki/Page' );
|
|
|
|
class EditPage extends Page {
|
|
|
|
get content() { return $( '#content' ); }
|
|
get edited() { return $( '*=Your edit was saved' ); }
|
|
get notices() { return $( '.ve-ui-mwNoticesPopupTool-items' ); }
|
|
get savePage() { return $( '.ve-ui-overlay-global .oo-ui-processDialog-actions-primary' ); }
|
|
get savePageDots() { return $( '.ve-ui-toolbar-saveButton' ); }
|
|
get toolbar() { return $( '.ve-init-mw-desktopArticleTarget-toolbar-open' ); }
|
|
get veBodyContent() { return $( '.mw-body-content.ve-ui-surface' ); }
|
|
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();
|