Skip to content

[Streams 🌊 ] Add explicit waits for data grid rows before clicking expand button#246919

Merged
rStelmach merged 9 commits intoelastic:mainfrom
rStelmach:streams-discover-integration-tests-flaky
Dec 22, 2025
Merged

[Streams 🌊 ] Add explicit waits for data grid rows before clicking expand button#246919
rStelmach merged 9 commits intoelastic:mainfrom
rStelmach:streams-discover-integration-tests-flaky

Conversation

@rStelmach
Copy link
Contributor

closes:
#246874
#246886

Summary

Fixes the flakiness in the Discover integration tests by adding proper waits for rows to render before we try to click them. For wired streams, I also added a page reload retry to handle the delay in data routing.

@rStelmach rStelmach requested review from a team as code owners December 18, 2025 15:21
@rStelmach rStelmach added release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting Team:obs-onboarding Observability Onboarding Team Feature:Streams This is the label for the Streams Project labels Dec 18, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-onboarding-team (Team:obs-onboarding)

// Data may not be routed yet, refresh and try again
await page.reload();
await pageObjects.discover.waitUntilSearchingHasFinished();
await expandButton.waitFor({ state: 'visible', timeout: 30_000 });
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: should this be a common function inside of the page objects class?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good, might be useful

@rStelmach rStelmach requested a review from a team as a code owner December 19, 2025 14:20
@elasticmachine
Copy link
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #56 / Endpoint plugin @ess @serverless @skipInServerlessMKI Endpoint artifacts (via lists plugin): Trusted Applications "before all" hook in "@ess @serverless @skipInServerlessMKI Endpoint artifacts (via lists plugin): Trusted Applications"

Metrics [docs]

✅ unchanged

History

@rStelmach rStelmach merged commit 8ecfc20 into elastic:main Dec 22, 2025
13 checks passed
@rStelmach rStelmach deleted the streams-discover-integration-tests-flaky branch December 22, 2025 12:30
mbondyra added a commit to mbondyra/kibana that referenced this pull request Dec 22, 2025
…d_step_back

* commit '51756d2722200a991607658d48ecda50aeb04a7d': (76 commits)
  [Synthetics] Fix SyncGlobalParamsSpaces flaky test (elastic#246487)
  [Synthetics] Fix useSyntheticsRules test (elastic#247259)
  [ES|QL] Fix index editor flaky test (elastic#247233)
  [ResponseOps][Reporting] Fix "failed to decrypt apiKey" error while disabling/enabling scheduled reports (elastic#247236)
  [Console] Update console definitions (main) (elastic#247214)
  [ES|QL] Esql indentation shortcut on the editor (elastic#247234)
  [Streams] Use original request for rules client when in default space (elastic#247014)
  Consolidate and improve unflattenObject (elastic#246725)
  [scout] use svl mode to run api-int tests (elastic#247223)
  SIEM Readiness V2 (elastic#245776)
  [ObsPresentation][A11y] Fix asset details flyout header announcement (elastic#246872)
  [Streams] Add abort support and silent mode for stream description generation (elastic#247082)
  [SLO] Add environment context to SLO feedback button (elastic#247221)
  Ignore the reason and retry systematically (elastic#246830)
  Update dependency @types/moment-duration-format to ^2.2.7 (main) (elastic#242221)
  [Streams 🌊 ] Add explicit waits for data grid rows before clicking expand button (elastic#246919)
  [Security Solution][Entity Analytics][Risk Scoring] Handle special characters in ESQL query for risk scoring (elastic#247060)
  [ML] Data frame analytics: Updates page headers (elastic#247097)
  [ES|QL] Build function arguments suggestions from hints (elastic#246736)
  Update dependency @hey-api/openapi-ts to v0.88.1 (main) (elastic#247210)
  ...
CAWilson94 pushed a commit to CAWilson94/kibana that referenced this pull request Jan 6, 2026
…pand button (elastic#246919)

closes:
[elastic#246874](elastic#246874)
[elastic#246886](elastic#246886)

## Summary

Fixes the flakiness in the Discover integration tests by adding proper
waits for rows to render before we try to click them. For wired streams,
I also added a page reload retry to handle the delay in data routing.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
dej611 pushed a commit to dej611/kibana that referenced this pull request Jan 8, 2026
…pand button (elastic#246919)

closes:
[elastic#246874](elastic#246874)
[elastic#246886](elastic#246886)

## Summary

Fixes the flakiness in the Discover integration tests by adding proper
waits for rows to render before we try to click them. For wired streams,
I also added a page reload retry to handle the delay in data routing.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:Streams This is the label for the Streams Project release_note:skip Skip the PR/issue when compiling release notes Team:obs-onboarding Observability Onboarding Team v9.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants