screenshots: References list dialog

Change-Id: I5a14412198cdc3cf48cd574195716fe0070f0158
This commit is contained in:
Ed Sanders 2016-06-29 13:36:00 +01:00
parent d29f874983
commit 4fef9d141c

View file

@ -309,12 +309,38 @@ function runTests( lang ) {
} );
win.input.setValue( 'E = mc^2' ).moveCursorToEnd();
} );
}, 1000 );
} );
surface.executeCommand( 'mathDialog' );
win = surface.dialogs.currentWindow;
}
);
} );
test.it( 'Reference list dialog', function () {
runScreenshotTest( 'VisualEditor_references_list',
// This function is converted to a string and executed in the browser
function () {
var win,
done = arguments[ arguments.length - 1 ],
surface = ve.init.target.surface;
surface.dialogs.once( 'opening', function ( win, opening ) {
opening.then( function () {
setTimeout( function () {
done(
seleniumUtils.getBoundingRect( [
win.$frame[ 0 ]
]
) );
}, 500 );
} );
} );
surface.executeCommand( 'referencesList' );
// The first command inserts a reference list instantly, so run again to open the window
surface.executeCommand( 'referencesList' );
win = surface.dialogs.currentWindow;
}
);
} );
test.it( 'Cite button', function () {
runScreenshotTest( 'VisualEditor_citoid_Cite_button',
// This function is converted to a string and executed in the browser