mirror of
https://github.com/discourse/discourse.git
synced 2025-05-26 05:11:44 +08:00
FIX: flakey due to 0 width/height images (#29700)
https://github.com/mainmatter/qunit-dom/blob/master/API.md#isvisible will return true if offsetWidth or offsetHeight are zero which could happen in this case as the test could run before the image has loaded. By forcing a minimum height in the test we ensure it will be consistent.
This commit is contained in:
@ -13,9 +13,9 @@ const youtubeCooked =
|
||||
|
||||
const animatedImageCooked =
|
||||
"<p>written text</p>" +
|
||||
'<p><img src="/images/avatar.png" class="animated onebox"></img></p>' +
|
||||
'<p><img src="/images/avatar.png" width="8" height="8" class="animated onebox"></img></p>' +
|
||||
"<p>more written text</p>" +
|
||||
'<p><img src="/images/d-logo-sketch-small.png" class="animated onebox"></img></p>' +
|
||||
'<p><img src="/images/d-logo-sketch-small.png" width="8" height="8" class="animated onebox"></img></p>' +
|
||||
"<p>and even more</p>";
|
||||
|
||||
const externalImageCooked =
|
||||
|
Reference in New Issue
Block a user