-
I've noticed recently working with some large video files that the test fail on media not being imported/downloaded fast enough. I've added a custom hook to my stories to delay the screenshot enough so the video can load in enough that it doesn't fail the test. If Loki waited for the DOM to be done instead of the React mounted lifecycle (if that's what it's doing), would this not make this more consistent? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I may have answered my own question - videos are async by default. This is what the problem was. Seeting it to Still - any other insight would be appreciated as I've seen other people say similar things about failed file loading failing tests. |
Beta Was this translation helpful? Give feedback.
I may have answered my own question - videos are async by default. This is what the problem was. Seeting it to
preload="none"
resolved that.Still - any other insight would be appreciated as I've seen other people say similar things about failed file loading failing tests.