Skip to content

Commit

Permalink
[8.16] [ML] Enable change point detection functional tests (#198702) (#…
Browse files Browse the repository at this point in the history
…198817)

# Backport

This will backport the following commits from `main` to `8.16`:
- [[ML] Enable change point detection functional tests
(#198702)](#198702)

<!--- 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-11-04T16:10:24Z","message":"[ML]
Enable change point detection functional tests (#198702)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/178258\r\n\r\nEnable change
point detection functional tests \r\n\r\n\r\n### Checklist\r\n\r\n- [x]
[Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\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":"1411604dd0caaba4ab2b6e46dcd9df0544e245c3","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":[":ml","release_note:skip","v9.0.0","Team:ML","Feature:ML/AIOps","v8.16.0","backport:version","v8.17.0"],"title":"[ML]
Enable change point detection functional tests
","number":198702,"url":"https://github.com/elastic/kibana/pull/198702","mergeCommit":{"message":"[ML]
Enable change point detection functional tests (#198702)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/178258\r\n\r\nEnable change
point detection functional tests \r\n\r\n\r\n### Checklist\r\n\r\n- [x]
[Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\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":"1411604dd0caaba4ab2b6e46dcd9df0544e245c3"}},"sourceBranch":"main","suggestedTargetBranches":["8.16","8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/198702","number":198702,"mergeCommit":{"message":"[ML]
Enable change point detection functional tests (#198702)\n\n##
Summary\r\n\r\nCloses
https://github.com/elastic/kibana/issues/178258\r\n\r\nEnable change
point detection functional tests \r\n\r\n\r\n### Checklist\r\n\r\n- [x]
[Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common scenarios\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":"1411604dd0caaba4ab2b6e46dcd9df0544e245c3"}},{"branch":"8.16","label":"v8.16.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.x","label":"v8.17.0","branchLabelMappingKey":"^v8.17.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
  • Loading branch information
kibanamachine and darnautov authored Nov 4, 2024
1 parent fe9df7f commit ac40495
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ const FieldPanel: FC<FieldPanelProps> = ({
disabled: removeDisabled,
},
],
'data=test-subj': 'aiopsChangePointDetectionContextMenuPanel',
'data-test-subj': 'aiopsChangePointDetectionContextMenuPanel',
},
{
id: 'attachMainPanel',
Expand Down
3 changes: 1 addition & 2 deletions x-pack/test/functional/apps/aiops/change_point_detection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ export default function ({ getPageObjects, getService }: FtrProviderContext) {
// aiops lives in the ML UI so we need some related services.
const ml = getService('ml');

// Failing: See https://github.com/elastic/kibana/issues/178258
describe.skip('change point detection', function () {
describe('change point detection', function () {
before(async () => {
await esArchiver.loadIfNeeded('x-pack/test/functional/es_archives/ml/ecommerce');
await ml.testResources.createDataViewIfNeeded('ft_ecommerce', 'order_date');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ export function ChangePointDetectionPageProvider(
},

async openPanelContextMenu(panelIndex: number) {
// Check if already open
const isOpen = await testSubjects.exists('aiopsChangePointDetectionAttachButton');
if (isOpen) {
return;
}

await testSubjects.click(
`aiopsChangePointPanel_${panelIndex} > aiopsChangePointDetectionContextMenuButton`
);
Expand Down

0 comments on commit ac40495

Please sign in to comment.