Skip to content

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

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

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

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.19:

Questions ?

Please refer to the Backport tool documentation

@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Aug 29, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) August 29, 2025 09:28
…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)
@kibanamachine kibanamachine force-pushed the backport/8.19/pr-232198 branch from 8e6034b to 68420b6 Compare September 4, 2025 15:16
@elasticmachine
Copy link
Contributor

elasticmachine commented Sep 4, 2025

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #36 / Index Management app Index template wizard Create "before all" hook for "should set the correct page title"
  • [job] [logs] FTR Configs #36 / 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 743.8KB 743.8KB +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