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

chore(select-input): add test for when autoFocussed is true #993

Merged
merged 2 commits into from
Aug 5, 2019

Conversation

montezume
Copy link
Contributor

Summary

Adds test case with isAutofocussed to SelectInput

Closes #897

Big thanks to @iamchanii and the help in JedWatson/react-select#3655 (comment)


const input = getByLabelText('Fruit');

fireEvent.blur(input);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this was the trick?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah... 🤦‍♂.

@montezume montezume merged commit 17d73b7 into master Aug 5, 2019
@montezume montezume deleted the ml-select-autofocus-rtl branch August 5, 2019 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Select inputs cannot be interacted with in tests when using autoFocus
2 participants