[Unit Testing] Configure react-testing-library queries to use Kibana's data-test-subj instead of default data-testid#59445
Merged
Dosant merged 14 commits intoelastic:masterfrom Mar 10, 2020
Conversation
Contributor
Author
|
@elasticmachine merge upstream |
7 tasks
…-react-testing-library
walterra
approved these changes
Mar 6, 2020
Contributor
walterra
left a comment
There was a problem hiding this comment.
Oh, that's a nice fix, thanks for doing this! ML changes LGTM 🎉
smith
approved these changes
Mar 6, 2020
Contributor
smith
left a comment
There was a problem hiding this comment.
APM changes look good. Thanks!
Contributor
Author
|
@elasticmachine merge upstream |
mistic
reviewed
Mar 6, 2020
…-react-testing-library
…nt/kibana into dev/configure-react-testing-library
Contributor
Author
|
@elasticmachine merge upstream |
Contributor
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
Dosant
added a commit
to Dosant/kibana
that referenced
this pull request
Mar 10, 2020
…s data-test-subj instead of default data-testid (elastic#59445) # Conflicts: # x-pack/plugins/endpoint/public/applications/endpoint/view/managing/index.test.tsx
gmmorris
added a commit
to gmmorris/kibana
that referenced
this pull request
Mar 10, 2020
* master: Add a retry to dashboard test for a sometimes slow async operation (elastic#59600) [Endpoint] Sample data generator for endpoint app (elastic#58936) [Vis Editor] Refactoring metrics axes (elastic#59135) [DOCS] Changed Discover app to Discover (elastic#59769) [Metrics Alerts] Add support for search query and groupBy on alerts (elastic#59388) Enhancement - EUICodeEditor for Visualize JSON (elastic#58679) [ML] Transforms: Data grid fixes. (elastic#59538) [SIEM] Fix and consolidate handling of error responses in the client (elastic#59438) [Maps] convert tooltip classes to typescript (elastic#59589) [ML] Functional tests - re-activate date_nanos test (elastic#59649) Move canvas to use NP Expressions service (elastic#58387) Update misc dependencies (elastic#59542) [Unit Testing] Configure react-testing-library queries to use Kibana's data-test-subj instead of default data-testid (elastic#59445) [Console] Remove unused code (elastic#59554) [Logs / Metrics UI] Link handling / stop page reloads (elastic#58478) Add SavedObject management section registration in core (elastic#59291)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
I was working on a bunch of react components and noticed we don't have react-testing-library configured properly.
Originally I tried to add this configuration in this pr, but after moving components to x-pack realised that unrelated code changes have to be done to make it pass. So extracted to separate pr
data-test-subjinstead ofdata-testidfor it's assertions. Cleans up occasional places wheretestidwas used or wheresubjworkaround was introducedChecklist
Delete any items that are not applicable to this PR.
For maintainers