Method “props” is only meant to be run on a single node. 0 found instead.
Author: PinturajCreated Aug 17, 2022Updated Sep 8, 2026
LabelsNeed More Information
Method “props” is meant to be run on 1 node. 0 found instead.
const commentTextInput = findByTestAttr(wrapper, 'clockings-add-comment');
console.log("testing1:"+commentTextInput.props().spellcheck)
Thanks for reporting an issue to us! We're glad you are using and invested in Enzyme. Before submitting, please read over our commonly reported issues to prevent duplicates!
All common issues
Notoriously common issues
- Webpack build issues
- Cannot find module 'react-dom/lib/ReactTestUtils'
- Query Selector fails
- Testing third party libraries
If you haven't found any duplicated issues, please report it with your environment!
Current behavior
Expected behavior
Your environment
API
- shallow
- mount
- render
Version
| library | version |
|---|---|
| enzyme | |
| react | |
| react-dom | |
| react-test-renderer | |
| adapter (below) |
Adapter
- enzyme-adapter-react-16
- enzyme-adapter-react-16.3
- enzyme-adapter-react-16.2
- enzyme-adapter-react-16.1
- enzyme-adapter-react-15
- enzyme-adapter-react-15.4
- enzyme-adapter-react-14
- enzyme-adapter-react-13
- enzyme-adapter-react-helper
- others ( )
Source: enzymejs/enzyme