Skip to content

Add links to community examples #455

@Josephaberry54

Description

@Josephaberry54

I want to be able to trigger events on the async typeahead within my project to test to ensure it is interacting with other components correctly using. I am using react-testing-library and not enzyme

It would be useful to know which events will trigger the onSearch and onChange functions and where to target them, whether that be through passing test-ids in or through label or placeholders etc.

I've passed in a test-id to the inputProps and can insert a value to the input. This triggers the onSearch and I then pass the options back in to typeahead as the options prop. However I cannot get these options to render in the DOM or have a way of passing an id in to the options menu to await them appearing in the DOM.

A working example of this working would be useful if it is even possible

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions