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

Add TS definition for findTestSubject #1106

Conversation

chandlerprall
Copy link
Contributor

Closes #1100 by adding a TypeScript definition to findTestSubject. This allows finding data-test-ref elements wrapped by enzyme's shallow and mount methods.

@chandlerprall
Copy link
Contributor Author

@stacey-gammon can you test this out in Kibana? All of my attempts at using this setup in EUI worked but I'm not 100% confident in it.

@stacey-gammon
Copy link
Contributor

Didn't run tests but linter seems to like it:

screen shot 2018-08-14 at 12 20 16 pm

@chandlerprall
Copy link
Contributor Author

Great, thanks for testing @stacey-gammon ; minding approving this PR and I'll merge it in? :)

Copy link
Contributor

@stacey-gammon stacey-gammon left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

@chandlerprall chandlerprall merged commit 9981073 into elastic:master Aug 14, 2018
@chandlerprall chandlerprall deleted the feature/1100-find-test-subject-types branch August 14, 2018 20:35
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.

[Typescript] Add types for findTestSubject
3 participants