Skip to content

[9.0] [scout] fix flaky flyout test (#217153)#217237

Merged
kibanamachine merged 1 commit intoelastic:9.0from
kibanamachine:backport/9.0/pr-217153
Apr 4, 2025
Merged

[9.0] [scout] fix flaky flyout test (#217153)#217237
kibanamachine merged 1 commit intoelastic:9.0from
kibanamachine:backport/9.0/pr-217153

Conversation

@kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 9.0:

Questions ?

Please refer to the Backport tool documentation

## Summary

```
TimeoutError: page.waitForSelector: Timeout 10000ms exceeded.
Call log:
  - waiting for locator('[data-test-subj="globalLoadingIndicator-hidden"]')

    at Object.waitForSelector (src/platform/packages/shared/kbn-scout/src/playwright/fixtures/test/scout_page/single_thread.ts:47:27)
    at Page.waitForLoadingIndicatorHidden (src/platform/packages/shared/kbn-scout/src/playwright/fixtures/test/scout_page/single_thread.ts:91:27)
    at x-pack/solutions/security/plugins/security_solution/ui_tests/parallel_tests/flyout/alert_details_url_sync.spec.ts:40:16
```

Failure rate before changes: 60%

<img width="487" alt="image"
src="https://github.com/user-attachments/assets/9331f973-9337-48cf-9131-c3acbf611d9c"
/>

For some reason specifically in serverless Security project loading
indicator is not hidden on page reload after 10 seconds.

To unblock Teams this PR changes tests to wait for
`detectionsAlertsPage` to be visible instead. The follow-up is to set
loading status directly in Alerting Table component and wait for
`alertsTable-loaded` data-test-subj in UI tests before interacting with
table.

Failure rate with changes: 0%
<img width="1592" alt="Screenshot 2025-04-04 at 17 08 32"
src="https://github.com/user-attachments/assets/c955ed94-bc92-4328-a3b5-0194806d31b1"
/>

(cherry picked from commit 6414204)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Apr 4, 2025
@kibanamachine kibanamachine enabled auto-merge (squash) April 4, 2025 17:27
@kibanamachine kibanamachine merged commit 001bcfe into elastic:9.0 Apr 4, 2025
12 checks passed
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #18 / Cases - group 1 View case draft comments persists new comment when case is closed through the close case button

Metrics [docs]

✅ unchanged

cc @dmlemeshko

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