You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function whenFullyLoaded(tiledImage, callback) {
if (tiledImage.getFullyLoaded()) {
setTimeout(callback, 1); // So both paths are asynchronous
} else {
tiledImage.addOnceHandler('fully-loaded-change', function() {
callback(); // Calling it this way keeps the arguments consistent (if we passed callback into addOnceHandler it would get an event on this path but not on the setTimeout path above)
});
}
}
whenFullyLoaded(viewer.world.getItemAt(0), function() {
// Success!
});
I am writing Unit Test for openseadragon react component in Cypress. Is there option in opneseadragon to know the image is loaded.
React component is
export default OpenSeaDragonImage;
Here is the current test code.
Images are not loaded while testing zoom button and other tests.
Are there solution for finding image is loaded to call test ?
The text was updated successfully, but these errors were encountered: