-
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] Single metric viewer in dashboards: adds functional test #178768
[ML] Single metric viewer in dashboards: adds functional test #178768
Conversation
Pinging @elastic/ml-ui (:ml) |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]
To update your PR or re-run it, just comment with: |
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.
One minor comment, otherwise code LGTM
@@ -16,6 +16,7 @@ export function MachineLearningDashboardEmbeddablesProvider( | |||
const retry = getService('retry'); | |||
const testSubjects = getService('testSubjects'); | |||
const find = getService('find'); | |||
// const ml = getService('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.
Is this line needed?
@@ -16,6 +16,7 @@ export function MachineLearningDashboardEmbeddablesProvider( | |||
const retry = getService('retry'); | |||
const testSubjects = getService('testSubjects'); | |||
const find = getService('find'); | |||
// const ml = getService('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.
nit: can remove commented code
await testSubjects.clickWhenNotDisabledWithoutRetry(subj); | ||
await this.assertAnomalyChartsEmbeddableInitializerNotExists(); | ||
}); | ||
}, | ||
|
||
async clickSingleMetricViewerInitializerConfirmButtonEnabled() { |
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.
does the function name clickSingleMetricViewerInitializerConfirmButtonEnabled
need to reflect that the button is enabled?
); | ||
}); | ||
|
||
it('create new single metric viewer panel', async () => { |
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.
Might not necessary for this test for now but might be useful in the future to also test that you can add multiple single metric viewer panels
Test LGTM 🎉 , just had some nit comments |
…c#178768) ## Summary Related meta issue: elastic#176651 This PR adds functional tests for SMV in dashboards. Flaky test runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5485 ### Checklist Delete any items that are not applicable to this PR. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed Co-authored-by: Kibana Machine <[email protected]>
Summary
Related meta issue: #176651
This PR adds functional tests for SMV in dashboards.
Flaky test runner: https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/5485
Checklist
Delete any items that are not applicable to this PR.