Skip to content
This repository was archived by the owner on Jul 30, 2020. It is now read-only.
This repository was archived by the owner on Jul 30, 2020. It is now read-only.

fireEvent on Text elements #3

@mcgloneleviROOT

Description

@mcgloneleviROOT

Problem:

I was using this testing framework to test an onPress event on a Text component from React Native. When I ran this line:

fireEvent.press(wrapper.getByText('Open Settings'));

I received this error:

No target found for event: "press"

I believe "Text" should be added under eventMap.press.validTargets in https://github.com/bcarroll22/native-testing-library/blob/master/src/events.js

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