Skip to content

[9.1] [Index management] Clean all tests after execution and navigate directly to the tab (#232198)#233440

Closed
kibanamachine wants to merge 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-232198
Closed

[9.1] [Index management] Clean all tests after execution and navigate directly to the tab (#232198)#233440
kibanamachine wants to merge 1 commit intoelastic:9.1from
kibanamachine:backport/9.1/pr-232198

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.1:

Questions ?

Please refer to the Backport tool documentation

…tly to the tab (elastic#232198)

## Summary
Space time project. I'm trying to improve the test for Kibana
Management. In this PR, I did two things:
* Clean up all created resources after execution. This suite contained a
lot of resources that wasn't deleted after execution. That complicates
local testing and leads to failures if you re-run the tests.
* Navigates directly to the desired tab when setting up the tests. This
is not an anti-patter, but it was time consuming. We were doing this:
```
      await pageObjects.common.navigateToApp('indexManagement');
      // Navigate to the data streams tab
      await pageObjects.indexManagement.changeTabs('data_streamsTab');
      await pageObjects.header.waitUntilLoadingHasFinished();
```

But the `navigateToApp` method already contains a path parameter, so
doing it this way, we can get rid of unnecessaries
`waitUntilLoadingHasFinished` calls.
With this simple change, the execution time of serverless tests locally
dropped from 2 minutes to 1 minute.

* Also, changes the data-test-subj for creating a component template
from `createPipelineButton` to `createComponentTemplateButton`, that
wasn't reflecting what the button really does.

Flay test runner stateful tests:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9177
Flay test runner serverless tests:
https://buildkite.com/elastic/kibana-flaky-test-suite-runner/builds/9182

(cherry picked from commit 1abc780)
@elasticmachine
Copy link
Contributor

elasticmachine commented Sep 4, 2025

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #27 / Index Management app Index template wizard Create "before all" hook for "should set the correct page title"
  • [job] [logs] FTR Configs #27 / Index Management app Index template wizard Create "before all" hook for "should set the correct page title"

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
indexManagement 675.5KB 675.5KB +18.0B

History

cc @SoniaSanzV

@SoniaSanzV SoniaSanzV closed this Sep 25, 2025
auto-merge was automatically disabled September 25, 2025 08:15

Pull request was closed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants