Skip to content

Simple text input value mutation.  #66

Closed
@hally9k

Description

@hally9k
  • react-testing-library version: 2.3.0
  • node version: v8.9.1
  • npm (or yarn) version: yarn@1.6.0

What you did:
I am just testing out this lib to see if I want to propose a switch from enzyme and I'm having trouble with the most basic stuff.

What happened:
Simply attempting to render a text input, snapshot it, change the value and snapshot it again.

Reproduction repository: https://github.com/hally9k/react-testing-library-example

Problem description: Changing the value of the text input doesn't reflect in the snapshot or invoke the onChange handler.

Suggested solution: Explain to me what I'm missing as I clearly misunderstand something here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions