[Lens][Unified Field list] Add functional tests to fields lists and summary popover#143747
[Lens][Unified Field list] Add functional tests to fields lists and summary popover#143747dej611 merged 14 commits intoelastic:mainfrom
Conversation
flash1293
left a comment
There was a problem hiding this comment.
Added some possible extensions to cover a few cases more that could become problematic
jughosta
left a comment
There was a problem hiding this comment.
Thanks for adding more tests! 👍
| defaultMessage: 'Top values', | ||
| }), | ||
| id: 'topValues', | ||
| 'data-test-subj': `${dataTestSubject}-topValues`, |
There was a problem hiding this comment.
| 'data-test-subj': `${dataTestSubject}-topValues`, | |
| 'data-test-subj': `${dataTestSubject}-buttonGroup-topValuesButton`, |
| defaultMessage: 'Distribution', | ||
| }), | ||
| id: 'histogram', | ||
| 'data-test-subj': `${dataTestSubject}-distribution`, |
There was a problem hiding this comment.
| 'data-test-subj': `${dataTestSubject}-distribution`, | |
| 'data-test-subj': `${dataTestSubject}-buttonGroup-distributionButton`, |
| })} | ||
| </EuiText> | ||
| </> | ||
| <EuiText size="s" data-test-subj="lnsFieldListPanel-missingContent"> |
There was a problem hiding this comment.
| <EuiText size="s" data-test-subj="lnsFieldListPanel-missingContent"> | |
| <EuiText size="s" data-test-subj="lnsFieldListPanel-missingFieldStats"> |
| } | ||
| if (!params.supported) { | ||
| return ( | ||
| <EuiText data-test-subj="lnsFieldListPanel-missingContent">{params.element}</EuiText> |
There was a problem hiding this comment.
| <EuiText data-test-subj="lnsFieldListPanel-missingContent">{params.element}</EuiText> | |
| <EuiText data-test-subj="lnsFieldListPanel-missingFieldStats">{params.element}</EuiText> |
| overrideMissingContent?: (params: { | ||
| element: JSX.Element; | ||
| noDataFound?: boolean; | ||
| supported?: boolean; |
There was a problem hiding this comment.
We could also merge noDataFound?: boolean; and supported?: boolean; into a single reason?: 'no-data' | 'unsupported' prop.
💛 Build succeeded, but was flaky
Failed CI StepsTest Failures
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
mbondyra
left a comment
There was a problem hiding this comment.
LGTM 👌🏼 did you managed to run flaky test runner x times to make sure it doesn't introduce flakiness? 🙏🏼
|
@mbondyra waiting for the 100 green checks: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/1470#_ |
Summary
Fixes #138724
This PR adds some functional tests for Lens fields list and adds some extra
data-test-subjectprops to component to make them testable.The following scenarios have been covered:
geo_point)All checks are performed for regular dataView (with
timeField), for ad-hoc (withtime-field) and an ad-hoc (withouttime-field).Checklist
Delete any items that are not applicable to this PR.
Risk Matrix
Delete this section if it is not applicable to this PR.
Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.
When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:
For maintainers