[Rules] Fixed serverless rules test#227442
Conversation
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#8589[❌] x-pack/test_serverless/functional/test_suites/observability/config.feature_flags.ts: 19/50 tests passed. |
312b162 to
b68296f
Compare
b68296f to
b64c591
Compare
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#8608[❌] x-pack/test_serverless/functional/test_suites/observability/config.feature_flags.ts: 0/25 tests passed. |
Flaky Test Runner Stats🟠 Some tests failed. - kibana-flaky-test-suite-runner#8610[❌] x-pack/test_serverless/functional/test_suites/observability/config.feature_flags.ts: 0/25 tests passed. |
b64c591 to
23892e0
Compare
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#8614[✅] x-pack/test_serverless/functional/test_suites/observability/config.feature_flags.ts: 25/25 tests passed. |
| await testSubjects.click('manageRulesPageButton'); | ||
| await retry.try(async () => { | ||
| await svlCommonNavigation.sidenav.clickLink({ text: 'Alerts' }); | ||
| expect(await testSubjects.exists('manageRulesPageButton')).toBeTruthy(); |
There was a problem hiding this comment.
Would it help to wait for the page to be loaded using something like:
await pageObjects.header.waitUntilLoadingHasFinished();
We had a flaky test before which I tried to fix it that way.
There was a problem hiding this comment.
I don't think the problem there is that the page is not loaded, I think that when clicking on the Alerts side nav button for some reason the navigation does not happen and the test was stuck in looking for the manageRulesPageButton but without trying clicking the Alerts button again.
Also worth mentioning that I was able to reproduce this only starting the server pointing to a Kibana build I previously created, I couldn't reproduce the issue running the server with the local Kibana.
There was a problem hiding this comment.
Ah, interesting, thanks for the explanation.
|
Starting backport for target branches: 8.19, 9.1 https://github.com/elastic/kibana/actions/runs/16219072734 |
It closes elastic#225813. It closes elastic#225800. It closes elastic#224460. When clicking on the `Alerts` side nav button for some reason the navigation was sometimes not happening and the test was stuck in looking for the `manageRulesPageButton` but without trying clicking the `Alerts` button again. Also worth mentioning that I was able to reproduce this only starting the server pointing to a Kibana build I previously created, I couldn't reproduce the issue running the server with the local Kibana. (cherry picked from commit 89a2343)
It closes elastic#225813. It closes elastic#225800. It closes elastic#224460. When clicking on the `Alerts` side nav button for some reason the navigation was sometimes not happening and the test was stuck in looking for the `manageRulesPageButton` but without trying clicking the `Alerts` button again. Also worth mentioning that I was able to reproduce this only starting the server pointing to a Kibana build I previously created, I couldn't reproduce the issue running the server with the local Kibana. (cherry picked from commit 89a2343)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `9.1`: - [[Rules] Fixed serverless rules test (#227442)](#227442) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Francesco Fagnani","email":"fagnani.francesco@gmail.com"},"sourceCommit":{"committedDate":"2025-07-11T11:36:24Z","message":"[Rules] Fixed serverless rules test (#227442)\n\nIt closes #225813.\nIt closes #225800.\nIt closes #224460.\n\nWhen clicking on the `Alerts` side nav button for some reason the\nnavigation was sometimes not happening and the test was stuck in looking\nfor the `manageRulesPageButton` but without trying clicking the `Alerts`\nbutton again.\n\nAlso worth mentioning that I was able to reproduce this only starting\nthe server pointing to a Kibana build I previously created, I couldn't\nreproduce the issue running the server with the local Kibana.","sha":"89a2343a0d7e5b19f77ed9918616a503ec2103fa","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:version","v9.1.0","v8.19.0","author:obs-ux-management","v9.2.0"],"title":"[Rules] Fixed serverless rules test","number":227442,"url":"https://github.com/elastic/kibana/pull/227442","mergeCommit":{"message":"[Rules] Fixed serverless rules test (#227442)\n\nIt closes #225813.\nIt closes #225800.\nIt closes #224460.\n\nWhen clicking on the `Alerts` side nav button for some reason the\nnavigation was sometimes not happening and the test was stuck in looking\nfor the `manageRulesPageButton` but without trying clicking the `Alerts`\nbutton again.\n\nAlso worth mentioning that I was able to reproduce this only starting\nthe server pointing to a Kibana build I previously created, I couldn't\nreproduce the issue running the server with the local Kibana.","sha":"89a2343a0d7e5b19f77ed9918616a503ec2103fa"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227442","number":227442,"mergeCommit":{"message":"[Rules] Fixed serverless rules test (#227442)\n\nIt closes #225813.\nIt closes #225800.\nIt closes #224460.\n\nWhen clicking on the `Alerts` side nav button for some reason the\nnavigation was sometimes not happening and the test was stuck in looking\nfor the `manageRulesPageButton` but without trying clicking the `Alerts`\nbutton again.\n\nAlso worth mentioning that I was able to reproduce this only starting\nthe server pointing to a Kibana build I previously created, I couldn't\nreproduce the issue running the server with the local Kibana.","sha":"89a2343a0d7e5b19f77ed9918616a503ec2103fa"}}]}] BACKPORT--> Co-authored-by: Francesco Fagnani <fagnani.francesco@gmail.com>
# Backport This will backport the following commits from `main` to `8.19`: - [[Rules] Fixed serverless rules test (#227442)](#227442) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Francesco Fagnani","email":"fagnani.francesco@gmail.com"},"sourceCommit":{"committedDate":"2025-07-11T11:36:24Z","message":"[Rules] Fixed serverless rules test (#227442)\n\nIt closes #225813.\nIt closes #225800.\nIt closes #224460.\n\nWhen clicking on the `Alerts` side nav button for some reason the\nnavigation was sometimes not happening and the test was stuck in looking\nfor the `manageRulesPageButton` but without trying clicking the `Alerts`\nbutton again.\n\nAlso worth mentioning that I was able to reproduce this only starting\nthe server pointing to a Kibana build I previously created, I couldn't\nreproduce the issue running the server with the local Kibana.","sha":"89a2343a0d7e5b19f77ed9918616a503ec2103fa","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","backport:version","v9.1.0","v8.19.0","author:obs-ux-management","v9.2.0"],"title":"[Rules] Fixed serverless rules test","number":227442,"url":"https://github.com/elastic/kibana/pull/227442","mergeCommit":{"message":"[Rules] Fixed serverless rules test (#227442)\n\nIt closes #225813.\nIt closes #225800.\nIt closes #224460.\n\nWhen clicking on the `Alerts` side nav button for some reason the\nnavigation was sometimes not happening and the test was stuck in looking\nfor the `manageRulesPageButton` but without trying clicking the `Alerts`\nbutton again.\n\nAlso worth mentioning that I was able to reproduce this only starting\nthe server pointing to a Kibana build I previously created, I couldn't\nreproduce the issue running the server with the local Kibana.","sha":"89a2343a0d7e5b19f77ed9918616a503ec2103fa"}},"sourceBranch":"main","suggestedTargetBranches":["9.1","8.19"],"targetPullRequestStates":[{"branch":"9.1","label":"v9.1.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.2.0","branchLabelMappingKey":"^v9.2.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/227442","number":227442,"mergeCommit":{"message":"[Rules] Fixed serverless rules test (#227442)\n\nIt closes #225813.\nIt closes #225800.\nIt closes #224460.\n\nWhen clicking on the `Alerts` side nav button for some reason the\nnavigation was sometimes not happening and the test was stuck in looking\nfor the `manageRulesPageButton` but without trying clicking the `Alerts`\nbutton again.\n\nAlso worth mentioning that I was able to reproduce this only starting\nthe server pointing to a Kibana build I previously created, I couldn't\nreproduce the issue running the server with the local Kibana.","sha":"89a2343a0d7e5b19f77ed9918616a503ec2103fa"}}]}] BACKPORT--> Co-authored-by: Francesco Fagnani <fagnani.francesco@gmail.com>
It closes elastic#225813. It closes elastic#225800. It closes elastic#224460. When clicking on the `Alerts` side nav button for some reason the navigation was sometimes not happening and the test was stuck in looking for the `manageRulesPageButton` but without trying clicking the `Alerts` button again. Also worth mentioning that I was able to reproduce this only starting the server pointing to a Kibana build I previously created, I couldn't reproduce the issue running the server with the local Kibana.
It closes #225813.
It closes #225800.
It closes #224460.
When clicking on the
Alertsside nav button for some reason the navigation was sometimes not happening and the test was stuck in looking for themanageRulesPageButtonbut without trying clicking theAlertsbutton again.Also worth mentioning that I was able to reproduce this only starting the server pointing to a Kibana build I previously created, I couldn't reproduce the issue running the server with the local Kibana.