Skip to content

Fix flaky test saved objects tagging#250891

Merged
paulinashakirova merged 6 commits intoelastic:mainfrom
paulinashakirova:flaky-test-saved-object-tags-bulk-delete
Feb 4, 2026
Merged

Fix flaky test saved objects tagging#250891
paulinashakirova merged 6 commits intoelastic:mainfrom
paulinashakirova:flaky-test-saved-object-tags-bulk-delete

Conversation

@paulinashakirova
Copy link
Copy Markdown
Contributor

Summary

This PR fixes Failing test: X-Pack Saved Object Tagging Functional Tests.x-pack/platform/test/saved_object_tagging/functional/tests/feature_control·ts - saved objects tagging - functional tests feature controls base write privileges can bulk delete tags issue.

This issue existed in the past, but was closed in August.

But it continued failing around once a month or so.

The isBulkActionPresent method had a subtle timing issue that caused rare flaky failures (~once a month in CI).
The method was checking for the menu button after toggling the menu closed. This usually worked because the close animation was slow enough that the DOM element still existed when the check ran. But occasionally under CI load, the animation finished first and the button was gone → false negative → test failed.
There was also an old typo in the selector (actionBar-contextMenuPopover instead of actionBar-contextMenu) that was masked by the code flow always re-opening the menu anyway.

@paulinashakirova paulinashakirova self-assigned this Jan 29, 2026
@@ -502,7 +496,7 @@ export class TagManagementPageObject extends FtrService {
* Return true if the bulk action menu is opened, false otherwise.
*/
async isActionMenuOpened() {
return this.testSubjects.exists('actionBar-contextMenuPopover');
return this.testSubjects.exists('actionBar-contextMenu');
}
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is the ActionBar component

 <EuiContextMenu
                  initialPanelId={0}
                  panels={contextMenuPanels}
                  data-test-subj="actionBar-contextMenu"
                />

@kibanamachine
Copy link
Copy Markdown
Contributor

Flaky Test Runner Stats

🎉 All tests passed! - kibana-flaky-test-suite-runner#10620

[✅] x-pack/platform/test/saved_object_tagging/functional/config.ts: 150/150 tests passed.

see run history

@paulinashakirova paulinashakirova marked this pull request as ready for review January 29, 2026 17:36
@paulinashakirova paulinashakirova requested a review from a team as a code owner January 29, 2026 17:36
@paulinashakirova paulinashakirova added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Jan 29, 2026
Copy link
Copy Markdown
Contributor

@ElenaStoeva ElenaStoeva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why @elastic/kibana-management owns the changed file given that we don't own saved objects 🤔 Giving a rubber-stamp approval, but it would be nice if someone familiar with saved objects takes a look as well.

@SoniaSanzV
Copy link
Copy Markdown
Contributor

SoniaSanzV commented Jan 30, 2026

I'm not sure why @elastic/kibana-management owns the changed file given that we don't own saved objects 🤔 Giving a rubber-stamp approval, but it would be nice if someone familiar with saved objects takes a look as well.

It looks like the name of the file satisfies our pattern /x-pack/platform/test/functional/page_objects/*_management_page.ts @elastic/kibana-management. Probably they need to rename it of add a higher priority ownership for this file https://github.com/elastic/kibana/blob/main/.github/CODEOWNERS#L2401

@paulinashakirova paulinashakirova enabled auto-merge (squash) February 4, 2026 13:40
@paulinashakirova paulinashakirova merged commit a4b65ac into elastic:main Feb 4, 2026
16 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

cc @paulinashakirova

@paulinashakirova paulinashakirova deleted the flaky-test-saved-object-tags-bulk-delete branch February 4, 2026 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting release_note:skip Skip the PR/issue when compiling release notes v9.4.0

Projects

None yet

5 participants