We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f97380d commit 9fee13dCopy full SHA for 9fee13d
2 files changed
tests/components/component.jsx
@@ -23,6 +23,7 @@ export default class TestComponent extends Component {
23
onClick={this.props.onClick}>
24
Click Me
25
</button>
26
+ <input name="bob" />
27
<TinyComponent test="true"/>
28
<OtherComponent test="true"/>
29
</section>
tests/find.jsx
@@ -38,6 +38,14 @@ describe('Find middleware', () => {
38
39
})
40
41
+ it('should find an input with a name attribute that equals \'bob\'', ()=>{
42
+ Test(<TestComponent/>)
43
+ .find('input[name="bob"]')
44
+ .test(function(){
45
+ expect(this.elements['[input[name="bob"]']).to.not.equal(undefined)
46
+ })
47
48
+
49
it('should find a rendered component', () => {
50
Test(<TestComponent/>)
51
.find(TinyComponent)
0 commit comments