[8.15] [ML] Enable anomaly charts Accessibility tests (#187482) (#187675)

# Backport

This will backport the following commits from `main` to `8.15`:
- [[ML] Enable anomaly charts Accessibility tests
(#187482)](https://github.com/elastic/kibana/pull/187482)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Dima
Arnautov","email":"dmitrii.arnautov@elastic.co"},"sourceCommit":{"committedDate":"2024-07-05T13:13:35Z","message":"[ML]
Enable anomaly charts Accessibility tests (#187482)\n\n##
Summary\r\n\r\nCloses #183196 \r\n\r\n\r\n### Checklist\r\n\r\n- [x]
[Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests
changed","sha":"503cac3127b85f54f6242033cc9154ba872050a7","branchLabelMapping":{"^v8.16.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","test_ui_functional","release_note:skip","Team:ML","v8.15.0","v8.16.0"],"title":"[ML]
Enable anomaly charts Accessibility tests
","number":187482,"url":"https://github.com/elastic/kibana/pull/187482","mergeCommit":{"message":"[ML]
Enable anomaly charts Accessibility tests (#187482)\n\n##
Summary\r\n\r\nCloses #183196 \r\n\r\n\r\n### Checklist\r\n\r\n- [x]
[Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests
changed","sha":"503cac3127b85f54f6242033cc9154ba872050a7"}},"sourceBranch":"main","suggestedTargetBranches":["8.15"],"targetPullRequestStates":[{"branch":"8.15","label":"v8.15.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/187482","number":187482,"mergeCommit":{"message":"[ML]
Enable anomaly charts Accessibility tests (#187482)\n\n##
Summary\r\n\r\nCloses #183196 \r\n\r\n\r\n### Checklist\r\n\r\n- [x]
[Flaky
Test\r\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1)
was\r\nused on any tests
changed","sha":"503cac3127b85f54f6242033cc9154ba872050a7"}}]}]
BACKPORT-->

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
This commit is contained in:
Kibana Machine 2024-07-08 09:08:34 +02:00 committed by GitHub
parent aa33d6d047
commit 7f969383ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -81,8 +81,7 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
});
for (const testData of testDataList) {
// FLAKY: https://github.com/elastic/kibana/issues/183196
describe.skip(testData.suiteSuffix, function () {
describe(testData.suiteSuffix, function () {
before(async () => {
await ml.api.createAndRunAnomalyDetectionLookbackJob(
testData.jobConfig,
@ -98,6 +97,8 @@ export default function ({ getService, getPageObjects }: FtrProviderContext) {
it('can open job selection flyout', async () => {
await PageObjects.dashboard.clickCreateDashboardPrompt();
await ml.dashboardEmbeddables.assertDashboardIsEmpty();
// FIXME remove sleep when https://github.com/elastic/kibana/issues/187587 if fixed
await PageObjects.common.sleep(3000);
await ml.dashboardEmbeddables.openAnomalyJobSelectionFlyout('ml_anomaly_charts');
await a11y.testAppSnapshot();
});