[8.x] Fix cloud UI sanity tests (#212368) (#212476)

# Backport

This will backport the following commits from `main` to `8.x`:
- [Fix cloud UI sanity tests
(#212368)](https://github.com/elastic/kibana/pull/212368)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Dmitry
Gurevich","email":"dmitry.gurevich@elastic.co"},"sourceCommit":{"committedDate":"2025-02-26T08:28:18Z","message":"Fix
cloud UI sanity tests (#212368)\n\n## Summary\n\nThis PR fixes the
`Querying provider data` tests executed on the\n`Findings`
page.\n\nSanity UI tests
successfully\n[run](3783519246).\n\n![Screenshot
2025-02-26 at 10
27\n31](https://github.com/user-attachments/assets/f2447f62-fafa-4e58-a98c-5abbf7f08c42)","sha":"d685e54225e41fcebc61eb00624a2a6a499f21d6","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-minor","v8.18.0","v9.1.0","backport:8.18"],"title":"Fix
cloud UI sanity
tests","number":212368,"url":"https://github.com/elastic/kibana/pull/212368","mergeCommit":{"message":"Fix
cloud UI sanity tests (#212368)\n\n## Summary\n\nThis PR fixes the
`Querying provider data` tests executed on the\n`Findings`
page.\n\nSanity UI tests
successfully\n[run](3783519246).\n\n![Screenshot
2025-02-26 at 10
27\n31](https://github.com/user-attachments/assets/f2447f62-fafa-4e58-a98c-5abbf7f08c42)","sha":"d685e54225e41fcebc61eb00624a2a6a499f21d6"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.18"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212368","number":212368,"mergeCommit":{"message":"Fix
cloud UI sanity tests (#212368)\n\n## Summary\n\nThis PR fixes the
`Querying provider data` tests executed on the\n`Findings`
page.\n\nSanity UI tests
successfully\n[run](3783519246).\n\n![Screenshot
2025-02-26 at 10
27\n31](https://github.com/user-attachments/assets/f2447f62-fafa-4e58-a98c-5abbf7f08c42)","sha":"d685e54225e41fcebc61eb00624a2a6a499f21d6"}}]}]
BACKPORT-->

Co-authored-by: Dmitry Gurevich <dmitry.gurevich@elastic.co>
This commit is contained in:
Kibana Machine 2025-02-26 21:47:45 +11:00 committed by GitHub
parent 61ff8872b9
commit fac04ee09a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,7 +93,7 @@ export default ({ getPageObjects, getService }: FtrProviderContext) => {
expect(rowsCount).to.be(expectedRowsCount);
const groupSelector = await findings.groupSelector();
await groupSelector.openDropDown();
await groupSelector.setValue('Cloud account');
await groupSelector.setValue('Cloud account ID');
const grouping = await findings.findingsGrouping();
// Check that the group count and unit count matches the expected values
const groupCount = await grouping.getGroupCount();