-
-
Notifications
You must be signed in to change notification settings - Fork 153
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test-support styles causes component tests to fail #521
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: