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
[Component] Setup
✓ should show invalid tip if prop msg is `MEMBERSHIP_TOKEN_INVALID`
Warning: ReactComponentTreeDevtool: Missing React element for debugID 81 when building stack
Warning: ReactComponentTreeDevtool: Missing React element for debugID 81 when building stack
Warning: ReactComponentTreeDevtool: Missing React element for debugID 81 when building stack
✓ should show token expire tip if prop msg is `MEMBERSHIP_TOKEN_EXPIRED`
Warning: ReactComponentTreeDevtool: Missing React element for debugID 85 when building stack
Warning: ReactComponentTreeDevtool: Missing React element for debugID 85 when building stack
Warning: ReactComponentTreeDevtool: Missing React element for debugID 85 when building stack
Warning: ReactComponentTreeDevtool: Missing React element for debugID 85 when building stack
Warning: ReactComponentTreeDevtool: Missing React element for debugID 85 when building stack
Warning: ReactComponentTreeDevtool: Missing React element for debugID 85 when building stack
Warning: ReactComponentTreeDevtool: Missing React element for debugID 85 when building stack
✓ should show membership confirmed tip if prop msg is `MEMBERSHIP_CONFIRMED`
Warning: ReactComponentTreeDevtool: Missing React element for debugID 95 when building stack
Warning: ReactComponentTreeDevtool: Missing React element for debugID 95 when building stack
Warning: ReactComponentTreeDevtool: Missing React element for debugID 95 when building stack
Warning: ReactComponentTreeDevtool: Missing React element for debugID 95 when building stack
Warning: ReactComponentTreeDevtool: Missing React element for debugID 95 when building stack
Warning: ReactComponentTreeDevtool: Missing React element for debugID 95 when building stack
Warning: ReactComponentTreeDevtool: Missing React element for debugID 95 when building stack
✓ should show membership already confirmed tip if prop msg is `MEMBERSHIP_ALREADY_CONFIRMED`
my test code:
importReactfrom'react';import{shallow}from'enzyme';import{expect}from'chai';importSetupfrom'./comp.Setup';importSetUpErrorfrom'./comp.SetupError';describe('[Component] Setup',()=>{it('should show invalid tip if prop msg is `MEMBERSHIP_TOKEN_INVALID`',()=>{constwrapper=shallow(<Setupmsg="MEMBERSHIP_TOKEN_INVALID"/>);expect(wrapper.find(SetUpError).html()).to.have.string('Invalid invitation link, please make sure you have used the correct link.');});it('should show token expire tip if prop msg is `MEMBERSHIP_TOKEN_EXPIRED`',()=>{constwrapper=shallow(<Setupmsg="MEMBERSHIP_TOKEN_EXPIRED"/>);expect(wrapper.find(SetUpError).html()).to.have.string('You invitation link is expired.');});it('should show membership confirmed tip if prop msg is `MEMBERSHIP_CONFIRMED`',()=>{constwrapper=shallow(<Setupmsg="MEMBERSHIP_CONFIRMED"/>);expect(wrapper.find(SetUpError).html()).to.have.string('You have joined the team successfully!');});it('should show membership already confirmed tip '+'if prop msg is `MEMBERSHIP_ALREADY_CONFIRMED`',()=>{constwrapper=shallow(<Setupmsg="MEMBERSHIP_ALREADY_CONFIRMED"/>);expect(wrapper.find(SetUpError).html()).to.have.string('You are already a member');});});
React 15.3.0, enzyme 2.4.1
The text was updated successfully, but these errors were encountered:
Please verify both react, react-dom and react-addons-test-utils are (at least) 15.3.1.
There were bugs that caused this in earlier versions.
If you can reproduce this with 15.3.1, please file an issue with a project reproducing it.
I encountered these errors when using
html()
:my test code:
React 15.3.0, enzyme 2.4.1
The text was updated successfully, but these errors were encountered: