Skip to content

Comments

[Alerts table] Unskipped pagination test#227486

Merged
cesco-f merged 3 commits intoelastic:mainfrom
cesco-f:alerts-table-test
Jul 15, 2025
Merged

[Alerts table] Unskipped pagination test#227486
cesco-f merged 3 commits intoelastic:mainfrom
cesco-f:alerts-table-test

Conversation

@cesco-f
Copy link
Contributor

@cesco-f cesco-f commented Jul 10, 2025

This PR closes #120440 .

This test was skipped a long time ago and several things changed since then.
The main thing is that the container that shows the alerts changed, now it's a component that shows a data-test-subj equal to internalAlertsPageLoading when loading and alertsTableIsLoaded when the alerts have been loaded.

The component shown when alerts are being loaded is not always shown, probably for some caching, so I removed the alertDataIsBeingLodaded check.

I also had to add a function to include the recovered alerts because the active alerts in the test data are only 10 and the pagination cannot work with just 10 alerts.

@cesco-f cesco-f requested review from a team as code owners July 10, 2025 16:21
@cesco-f cesco-f added release_note:skip Skip the PR/issue when compiling release notes backport:version Backport to applied version labels v9.1.0 v8.19.0 v9.2.0 labels Jul 10, 2025
@botelastic botelastic bot added the ci:project-deploy-observability Create an Observability project label Jul 10, 2025
@github-actions github-actions bot added the author:obs-ux-management PRs authored by the obs ux management team label Jul 10, 2025
@github-actions
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@cesco-f cesco-f force-pushed the alerts-table-test branch from bbaa353 to ce7909b Compare July 10, 2025 16:21
@cesco-f cesco-f removed the request for review from a team July 10, 2025 16:21
@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#8596

[❌] x-pack/test/observability_functional/with_rac_write.config.ts: 25/50 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

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

[✅] x-pack/test/observability_functional/with_rac_write.config.ts: 25/25 tests passed.

see run history

@cesco-f cesco-f force-pushed the alerts-table-test branch from ce7909b to b4b5e56 Compare July 10, 2025 20:33
@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

🟠 Some tests failed. - kibana-flaky-test-suite-runner#8602

[❌] x-pack/test/observability_functional/with_rac_write.config.ts: 0/25 tests passed.

see run history

@kibanamachine
Copy link
Contributor

Flaky Test Runner Stats

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

[✅] x-pack/test/observability_functional/with_rac_write.config.ts: 25/25 tests passed.

see run history

@cesco-f cesco-f force-pushed the alerts-table-test branch from 43aec26 to cbd2cf5 Compare July 14, 2025 10:41
@elasticmachine
Copy link
Contributor

elasticmachine commented Jul 14, 2025

💚 Build Succeeded

  • Buildkite Build
  • Commit: 000519f
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-227486-000519f1c0cd

Metrics [docs]

✅ unchanged

History

Copy link
Contributor

@dominiqueclarke dominiqueclarke left a comment

Choose a reason for hiding this comment

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

LGTM

@cesco-f cesco-f merged commit ca9a70b into elastic:main Jul 15, 2025
11 of 12 checks passed
@cesco-f cesco-f deleted the alerts-table-test branch July 15, 2025 05:45
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.19, 9.1

https://github.com/elastic/kibana/actions/runs/16285148073

@kibanamachine
Copy link
Contributor

cesco-f added a commit to cesco-f/kibana that referenced this pull request Jul 15, 2025
This PR closes elastic#120440 .

This test was skipped a long time ago and several things changed since
then.
The main thing is that the container that shows the alerts changed, now
it's a component that shows a `data-test-subj` equal to
`internalAlertsPageLoading` when loading and `alertsTableIsLoaded` when
the alerts have been loaded.

The component shown when alerts are being loaded is not always shown,
probably for some caching, so I removed the `alertDataIsBeingLodaded`
check.

I also had to add a function to include the `recovered` alerts because
the `active` alerts in the test data are only 10 and the pagination
cannot work with just 10 alerts.

(cherry picked from commit ca9a70b)

# Conflicts:
#	x-pack/solutions/observability/test/functional/services/observability/alerts/common.ts
@cesco-f
Copy link
Contributor Author

cesco-f commented Jul 15, 2025

💚 All backports created successfully

Status Branch Result
9.1
8.19

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

cesco-f added a commit that referenced this pull request Jul 16, 2025
# Backport

This will backport the following commits from `main` to `9.1`:
- [[Alerts table] Unskipped pagination test
(#227486)](#227486)

<!--- Backport version: 10.0.1 -->

### 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-15T05:45:30Z","message":"[Alerts
table] Unskipped pagination test (#227486)\n\nThis PR closes #120440
.\n\nThis test was skipped a long time ago and several things changed
since\nthen.\nThe main thing is that the container that shows the alerts
changed, now\nit's a component that shows a `data-test-subj` equal
to\n`internalAlertsPageLoading` when loading and `alertsTableIsLoaded`
when\nthe alerts have been loaded.\n\nThe component shown when alerts
are being loaded is not always shown,\nprobably for some caching, so I
removed the `alertDataIsBeingLodaded`\ncheck.\n\nI also had to add a
function to include the `recovered` alerts because\nthe `active` alerts
in the test data are only 10 and the pagination\ncannot work with just
10
alerts.","sha":"ca9a70b7040399cb6a2433ff77b6e3d5fffc13cf","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","ci:project-deploy-observability","backport:version","v9.1.0","v8.19.0","author:obs-ux-management","v9.2.0"],"title":"[Alerts
table] Unskipped pagination
test","number":227486,"url":"https://github.com/elastic/kibana/pull/227486","mergeCommit":{"message":"[Alerts
table] Unskipped pagination test (#227486)\n\nThis PR closes #120440
.\n\nThis test was skipped a long time ago and several things changed
since\nthen.\nThe main thing is that the container that shows the alerts
changed, now\nit's a component that shows a `data-test-subj` equal
to\n`internalAlertsPageLoading` when loading and `alertsTableIsLoaded`
when\nthe alerts have been loaded.\n\nThe component shown when alerts
are being loaded is not always shown,\nprobably for some caching, so I
removed the `alertDataIsBeingLodaded`\ncheck.\n\nI also had to add a
function to include the `recovered` alerts because\nthe `active` alerts
in the test data are only 10 and the pagination\ncannot work with just
10
alerts.","sha":"ca9a70b7040399cb6a2433ff77b6e3d5fffc13cf"}},"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/227486","number":227486,"mergeCommit":{"message":"[Alerts
table] Unskipped pagination test (#227486)\n\nThis PR closes #120440
.\n\nThis test was skipped a long time ago and several things changed
since\nthen.\nThe main thing is that the container that shows the alerts
changed, now\nit's a component that shows a `data-test-subj` equal
to\n`internalAlertsPageLoading` when loading and `alertsTableIsLoaded`
when\nthe alerts have been loaded.\n\nThe component shown when alerts
are being loaded is not always shown,\nprobably for some caching, so I
removed the `alertDataIsBeingLodaded`\ncheck.\n\nI also had to add a
function to include the `recovered` alerts because\nthe `active` alerts
in the test data are only 10 and the pagination\ncannot work with just
10 alerts.","sha":"ca9a70b7040399cb6a2433ff77b6e3d5fffc13cf"}}]}]
BACKPORT-->
cesco-f added a commit that referenced this pull request Jul 16, 2025
# Backport

This will backport the following commits from `main` to `8.19`:
- [[Alerts table] Unskipped pagination test
(#227486)](#227486)

<!--- Backport version: 10.0.1 -->

### 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-15T05:45:30Z","message":"[Alerts
table] Unskipped pagination test (#227486)\n\nThis PR closes #120440
.\n\nThis test was skipped a long time ago and several things changed
since\nthen.\nThe main thing is that the container that shows the alerts
changed, now\nit's a component that shows a `data-test-subj` equal
to\n`internalAlertsPageLoading` when loading and `alertsTableIsLoaded`
when\nthe alerts have been loaded.\n\nThe component shown when alerts
are being loaded is not always shown,\nprobably for some caching, so I
removed the `alertDataIsBeingLodaded`\ncheck.\n\nI also had to add a
function to include the `recovered` alerts because\nthe `active` alerts
in the test data are only 10 and the pagination\ncannot work with just
10
alerts.","sha":"ca9a70b7040399cb6a2433ff77b6e3d5fffc13cf","branchLabelMapping":{"^v9.2.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","ci:project-deploy-observability","backport:version","v9.1.0","v8.19.0","author:obs-ux-management","v9.2.0"],"title":"[Alerts
table] Unskipped pagination
test","number":227486,"url":"https://github.com/elastic/kibana/pull/227486","mergeCommit":{"message":"[Alerts
table] Unskipped pagination test (#227486)\n\nThis PR closes #120440
.\n\nThis test was skipped a long time ago and several things changed
since\nthen.\nThe main thing is that the container that shows the alerts
changed, now\nit's a component that shows a `data-test-subj` equal
to\n`internalAlertsPageLoading` when loading and `alertsTableIsLoaded`
when\nthe alerts have been loaded.\n\nThe component shown when alerts
are being loaded is not always shown,\nprobably for some caching, so I
removed the `alertDataIsBeingLodaded`\ncheck.\n\nI also had to add a
function to include the `recovered` alerts because\nthe `active` alerts
in the test data are only 10 and the pagination\ncannot work with just
10
alerts.","sha":"ca9a70b7040399cb6a2433ff77b6e3d5fffc13cf"}},"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/227486","number":227486,"mergeCommit":{"message":"[Alerts
table] Unskipped pagination test (#227486)\n\nThis PR closes #120440
.\n\nThis test was skipped a long time ago and several things changed
since\nthen.\nThe main thing is that the container that shows the alerts
changed, now\nit's a component that shows a `data-test-subj` equal
to\n`internalAlertsPageLoading` when loading and `alertsTableIsLoaded`
when\nthe alerts have been loaded.\n\nThe component shown when alerts
are being loaded is not always shown,\nprobably for some caching, so I
removed the `alertDataIsBeingLodaded`\ncheck.\n\nI also had to add a
function to include the `recovered` alerts because\nthe `active` alerts
in the test data are only 10 and the pagination\ncannot work with just
10 alerts.","sha":"ca9a70b7040399cb6a2433ff77b6e3d5fffc13cf"}}]}]
BACKPORT-->

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Bluefinger pushed a commit to Bluefinger/kibana that referenced this pull request Jul 22, 2025
This PR closes elastic#120440 .

This test was skipped a long time ago and several things changed since
then.
The main thing is that the container that shows the alerts changed, now
it's a component that shows a `data-test-subj` equal to
`internalAlertsPageLoading` when loading and `alertsTableIsLoaded` when
the alerts have been loaded.

The component shown when alerts are being loaded is not always shown,
probably for some caching, so I removed the `alertDataIsBeingLodaded`
check.

I also had to add a function to include the `recovered` alerts because
the `active` alerts in the test data are only 10 and the pagination
cannot work with just 10 alerts.
kertal pushed a commit to kertal/kibana that referenced this pull request Jul 25, 2025
This PR closes elastic#120440 .

This test was skipped a long time ago and several things changed since
then.
The main thing is that the container that shows the alerts changed, now
it's a component that shows a `data-test-subj` equal to
`internalAlertsPageLoading` when loading and `alertsTableIsLoaded` when
the alerts have been loaded.

The component shown when alerts are being loaded is not always shown,
probably for some caching, so I removed the `alertDataIsBeingLodaded`
check.

I also had to add a function to include the `recovered` alerts because
the `active` alerts in the test data are only 10 and the pagination
cannot work with just 10 alerts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author:obs-ux-management PRs authored by the obs ux management team backport:version Backport to applied version labels ci:project-deploy-observability Create an Observability project release_note:skip Skip the PR/issue when compiling release notes v8.19.0 v9.1.0 v9.2.0

Projects

None yet

4 participants