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
@filipenatanael isn't wrapper an enzyme wrapper, so it doesn't have any style actually on it? you should look for the wrapping html element instead for the styles to show.
Hello Everyone,
So I'm getting the below error message when trying to run the tests.
expect(wrapper).to.have.style('background-color').equal('#ccc');
But when I write the code as below, everything works correctly.
expect(wrapper.props().style.backgroundColor).to.be.equal('#ccc');
Any of yours have gone through this before?
The text was updated successfully, but these errors were encountered: