mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-12 09:09:25 +00:00
Merge "screenshots: Add delay to wait for link inspector images to load"
This commit is contained in:
commit
fa8bad0836
|
@ -373,7 +373,9 @@ function runTests( lang ) {
|
|||
|
||||
surface.context.inspectors.once( 'opening', function ( win, opening ) {
|
||||
opening.then( function () {
|
||||
ve.init.target.surface.context.inspectors.windows.link.annotationInput.input.requestRequest.then( function () {
|
||||
surface.context.inspectors.windows.link.annotationInput.input.requestRequest.then( function () {
|
||||
// Wait a while for the images to load using a time guesstimate - as they're background
|
||||
// images it's quite tricky to get load events.
|
||||
setTimeout( function () {
|
||||
done(
|
||||
seleniumUtils.getBoundingRect( [
|
||||
|
@ -381,7 +383,7 @@ function runTests( lang ) {
|
|||
surface.context.inspectors.currentWindow.$element[ 0 ]
|
||||
] )
|
||||
);
|
||||
}, 500 );
|
||||
}, 2500 );
|
||||
} );
|
||||
} );
|
||||
} );
|
||||
|
|
Loading…
Reference in a new issue