flexi: img tag with src attribute in container raises error in acceptance test
I’ve notified @runspired in slack but I thought that I should write the issue here. On an new empty project, having an acceptance test for a route that contains this <container><img src="/assets/img/image.png"/></container>
in its template raises the error:
Uncaught (in promise) EmberError {description: undefined, fileName: undefined, lineNumber: undefined, message: “Assertion Failed: You have turned on testing mode,… any code with asynchronous side-effects in a run”, name: “Error”…}
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 17 (1 by maintainers)
Thanks for your persistence @HenryVonfire!
@HenryVonfire
@rwwagner90 says he has seen similar breakage from
<container>
and<grid responsive>
, though I am still unable to reproduce (in Chrome, Safari, Firefox, or PhantomJS):Going to re-open this and assign to RWW since he mentioned looking into it. A bit hard for me without being able to repro 😉
@HenryVonfire the
img
has nothing to do with anything, I don’t think. I thinkcontainer
andgrid responsive
just break the run loop in acceptance tests. I believe we are not wrapping inrun.join
for performance reasons, but it breaks testing. @runspired can you please confirm?