mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Screenshots: Hack the toolbar to display "Article" instead of "Help page"
Change-Id: Iad632a23939712d8d7feb3097b714bfa30d362a1
This commit is contained in:
parent
ca46a67843
commit
08bfe509df
|
@ -15,12 +15,17 @@
|
|||
// This function is converted to a string and executed in the browser
|
||||
function () {
|
||||
var done = arguments[ arguments.length - 1 ];
|
||||
// HACK: The test page is on the help namespace, so overwrite the
|
||||
// read tab with the nstab-main message.
|
||||
new mw.Api().loadMessagesIfMissing( [ 'nstab-main' ], { amenableparser: true } ).then( function () {
|
||||
$( '#ca-nstab-help a' ).text( mw.msg( 'nstab-main' ) );
|
||||
done(
|
||||
seleniumUtils.getBoundingRect( [
|
||||
ve.init.target.toolbar.$element[ 0 ],
|
||||
$( '#p-namespaces' )[ 0 ]
|
||||
] )
|
||||
);
|
||||
} );
|
||||
},
|
||||
0
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue