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
The css/vhunit test sometimes returns false on Chrome v79/Windows 8.
After some manual debugging it seems getComputedStyle gives height to be 0 instead of the expected 10. I can reproduce this anywhere between 30-70% of the time when I refresh the page.
I also tried commenting out the code that removes #modernizr so that I can inspect it.... Turns out that it always has a 10px height - regardless if the test failed or not.
It feels like some kind of race-condition is going on. Could it be that the styles aren't always applied on time? I have over 30 feature-tests and only this one ever fails.
The text was updated successfully, but these errors were encountered:
Hi @AnderssonChristian.
I've experienced sort of this recently.
Try to add position: absolute property to the first testStyles argument of vhunit test, like so:
Hi everyone,
I experience this issue also with Chrome 94 on both Mac OS and Windows when I have a zoom level other than 100%. The exact level of zoom required to break the test seems to vary also according to screen resolution.
Hope this could help in better spotting the issue.
The css/vhunit test sometimes returns false on Chrome v79/Windows 8.
After some manual debugging it seems
getComputedStyle
givesheight
to be 0 instead of the expected 10. I can reproduce this anywhere between 30-70% of the time when I refresh the page.I also tried commenting out the code that removes
#modernizr
so that I can inspect it.... Turns out that it always has a10px
height - regardless if the test failed or not.It feels like some kind of race-condition is going on. Could it be that the styles aren't always applied on time? I have over 30 feature-tests and only this one ever fails.
The text was updated successfully, but these errors were encountered: