mirror of
https://github.com/discourse/discourse.git
synced 2025-03-27 21:07:53 +08:00

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.