diff --git a/src/elements/core/testing/wait-for-image-ready.ts b/src/elements/core/testing/wait-for-image-ready.ts index 4df594b175..454cfd3eec 100644 --- a/src/elements/core/testing/wait-for-image-ready.ts +++ b/src/elements/core/testing/wait-for-image-ready.ts @@ -10,7 +10,11 @@ export async function waitForImageReady( const timeout = setTimeout(() => reject('image loading timeout'), timeoutInMilliseconds); element.addEventListener('load', () => { clearTimeout(timeout); - resolve(); + if (isSafari) { + setTimeout(resolve, 100); + } else { + resolve(); + } }); element.addEventListener('error', () => { clearTimeout(timeout);