You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a component needs to get the parent element's height and width during its didInsertElement phase, so I set up a test case renders a template snippet:
As we saw in this screenshot, the wrapper element renders only half of width and height compares to its styles, it causes the test to fail even its implementation is actually correct.
I have a component needs to get the parent element's
height
andwidth
during itsdidInsertElement
phase, so I set up a test case renders a template snippet:then I got a weird result like below:
As we saw in this screenshot, the wrapper element renders only half of width and height compares to its styles, it causes the test to fail even its implementation is actually correct.
I found the root cause is the default styles in:
ember-qunit/vendor/ember-qunit/test-container-styles.css
Lines 23 to 25 in 633f7c2
but I'm not confident to remove it at all. I use this temporary solution currently:
The text was updated successfully, but these errors were encountered: