Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Method “props” is only meant to be run on a single node. 0 found instead. #2566

Open
1 of 13 tasks
Pinturaj opened this issue Aug 17, 2022 · 1 comment
Open
1 of 13 tasks

Comments

@Pinturaj
Copy link

Pinturaj commented Aug 17, 2022

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

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 ( )
@ljharb
Copy link
Member

ljharb commented Aug 17, 2022

@Pinturaj please fill out the entire issue template; it's there for a reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants