-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[ML] Fix functional tests for index based Data Visualizer #86071
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Gave it a first read and in addition to the items discussed on slack, I have a few more suggestions.
Also, I think we should add a test that types a search string into the query bar and validates that the table is filtered correctly.
x-pack/plugins/ml/public/application/components/multi_select_picker/multi_select_picker.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/ml/public/application/components/multi_select_picker/multi_select_picker.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/ml/public/application/components/multi_select_picker/multi_select_picker.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/ml/public/application/components/multi_select_picker/multi_select_picker.tsx
Outdated
Show resolved
Hide resolved
x-pack/test/functional/apps/ml/data_visualizer/index_data_visualizer.ts
Outdated
Show resolved
Hide resolved
x-pack/test/functional/apps/ml/data_visualizer/index_data_visualizer.ts
Outdated
Show resolved
Hide resolved
x-pack/test/functional/apps/ml/data_visualizer/index_data_visualizer.ts
Outdated
Show resolved
Hide resolved
Started flaky test runner suite... no failures in 50 runs ✅ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎉
Just two ideas for a future PR.
Also, I think we should add a test that types a search string into the query bar and validates that the table is filtered correctly.
This is still not in, but indirectly covered by loading a saved search in one of the tests, so I'm ok with leaving it for a future PR.
|
||
await ml.testExecution.logTestStep( | ||
`${testData.suiteTitle} displays elements in the field count panel correctly` | ||
); | ||
await ml.dataVisualizerIndexBased.assertFieldCountPanelExist(); | ||
await ml.dataVisualizerIndexBased.assertMetricFieldsSummaryExist(); | ||
await ml.dataVisualizerIndexBased.assertFieldsSummaryExist(); | ||
await ml.dataVisualizerIndexBased.assertShowEmptyFieldsSwitchExists(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd suggest to move this to the displays the data visualizer table
test block and also checking for the search box and the filter buttons there. But this can be done in a future PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rearranged these under the data visualizer table block here 5581931
(#86071)
}); | ||
} | ||
|
||
public async setMultiSelectFilter( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method and removeMultiSelectFilter
could probably be moved to the common UI service for future re-use. But this can be done in a future PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Moved these two methods to mlCommonUI here 5581931
(#86071)
…, remove Filtered, rearrange assertion block
@elasticmachine merge upstream |
💚 Build SucceededMetrics [docs]Async chunks
Distributable file count
History
To update your PR or re-run it, just comment with: |
Pinging @elastic/ml-ui (:ml) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM ⚡
) Co-authored-by: Kibana Machine <[email protected]>
) Co-authored-by: Kibana Machine <[email protected]>
…) (#86408) Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
) (#86409) Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Kibana Machine <[email protected]>
Summary
This PR is a follow up of #85726 which adds coverage for the content, sampler shard size, and filters.
Checklist
Delete any items that are not applicable to this PR.