Shrinath Rao and Claude Opus 4.6
d573d01a62
fix(test): eliminate bare networkidle timeouts across entire test suite ( #10494 )
...
## Summary
- Replaced every bare `waitForLoadState('networkidle')` with `{ timeout:
10000 }.catch(() => {})` across **56 files** (35 spec files, 21 page
objects)
- OpenObserve pages maintain persistent RUM/replay/WebSocket connections
that prevent `networkidle` from ever resolving, causing 90s timeout
crashes
- Added `fetchWithRetry` helper for transient 502/proxy errors in SDR
multi-pattern `beforeAll`
- Bumped SDR multi-pattern test timeout from 300s to 420s for CI
## Files changed
**Page objects (21 files):** alertsPage, alertManagement,
alertCreationWizard, alertTemplatesPage, alertBulkOperations, logsPage,
streamsPage, streamAssociationPage, sdrPatternsPage,
sdrVerificationPage, dashboardPage, functionsPage, pipelinesPage,
enrichmentPage, sanityPage, schemaPage, loginPage, commonActions, and
more
**Spec files (35 files):** All SDR specs, all Traces specs, all Logs
specs, all RegressionSet specs, Alerts specs, Pipelines specs,
Dashboards specs, Functions specs, GeneralTests specs, wait-helpers
utility
## Test plan
- [x] Verify zero bare `networkidle` calls remain in `tests/ui-testing/`
- [ ] CI passes for SDR, Streams, Logs Regression, and other test suites
🤖 Generated with [Claude Code](https://claude.com/claude-code )
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com >
2026-02-15 14:42:32 +05:30
priyabrata-stack and github-actions[bot]
195fb4e419
test: traces tests ( #9650 )
...
### **User description**
Trace data ingestion utility (trace-ingestion.js) that generates
OTLP-compliant distributed traces with various scenarios (success,
database errors, auth errors, 404s)
Reusable test helper utilities following DRY principles from logs tests
6 test spec files with P0/P1/P2 prioritization covering critical paths,
core functionality, and edge cases
Enhanced page object with 50+ new selectors and methods for trace
interactions
Global setup integration to ingest 20 test traces before test execution
___
### **PR Type**
Tests
___
### **Description**
- Extend `TracesPage` with selectors and helper methods
- Add global setup trace ingestion utility
- Introduce Playwright test suites for Traces:
- Service Maps, Advanced Filtering, Trace Details
- Error Filtering, Query Editor, Search
___
<details> <summary><h3> File Walkthrough</h3></summary>
<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Enhancement</strong></td><td><details><summary>2
files</summary><table>
<tr>
<td><strong>tracesPage.js</strong><dd><code>Extend TracesPage with
selectors and helpers</code>
</dd></td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9650/files#diff-b21e724124188921fea3b88d62aef68acd31e385e1b04d3f23565f3f9e059bb3 ">+253/-6</a>
</td>
</tr>
<tr>
<td><strong>trace-ingestion.js</strong><dd><code>Implement trace
ingestion utility</code>
</dd></td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9650/files#diff-83e4c6bffd71f42bc78f33487b04cd1613e94c6375b706274e6841efffd8dd52 ">+331/-0</a>
</td>
</tr>
</table></details></td></tr><tr><td><strong>Tests</strong></td><td><details><summary>7
files</summary><table>
<tr>
<td><strong>serviceMaps.spec.js</strong><dd><code>Add service maps view
tests</code>
</dd></td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9650/files#diff-b16eddc62227ec356faceb5c640413311d5b569747084b138bacf08427d022ca ">+182/-0</a>
</td>
</tr>
<tr>
<td><strong>traceAdvancedFiltering.spec.js</strong><dd><code>Add
advanced filtering test scenarios</code>
</dd></td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9650/files#diff-3bbb700e0ea018647160af79231dc606f176fcb7e0be1164b69aeed91fc9026a ">+360/-0</a>
</td>
</tr>
<tr>
<td><strong>traceDetails.spec.js</strong><dd><code>Add trace details
functionality tests</code>
</dd></td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9650/files#diff-b01297d7b1f713590213d42937b05c25621d12d30dd0e4144fb861db15b15810 ">+198/-0</a>
</td>
</tr>
<tr>
<td><strong>traceErrorFilter.spec.js</strong><dd><code>Add error
filtering test suite</code>
</dd></td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9650/files#diff-7ed3a7e2fbc68ea2786a3fee2f83d3ee33ce2ac45830e9253aeebd94d63441c2 ">+284/-0</a>
</td>
</tr>
<tr>
<td><strong>traceQueryEditor.spec.js</strong><dd><code>Add query editor
interaction tests</code>
</dd></td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9650/files#diff-0f3a8bffbd91aabd267920147a03425566a8a7c2dd74795ff15aed23a87dcead ">+263/-0</a>
</td>
</tr>
<tr>
<td><strong>tracesSearch.spec.js</strong><dd><code>Add basic traces
search and navigation tests</code>
</dd></td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9650/files#diff-75c29494bb340e63aa8cf76bdcff572d9e860c9b4a7fa8ba3510ebc86ccdda60 ">+298/-0</a>
</td>
</tr>
<tr>
<td><strong>trace-test-helpers.js</strong><dd><code>Add trace test
helper utilities</code>
</dd></td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9650/files#diff-12fffc3c28d1b21cd02f87065767fcb9655ef22e2210093daaf6a67ad01f406f ">+328/-0</a>
</td>
</tr>
</table></details></td></tr><tr><td><strong>Configuration
changes</strong></td><td><details><summary>1 files</summary><table>
<tr>
<td><strong>global-setup.js</strong><dd><code>Integrate trace ingestion
in global setup</code>
</dd></td>
<td><a
href="https://github.com/openobserve/openobserve/pull/9650/files#diff-06323dad7214f86b41b62e121e716eeea0054bc4d950c6bcf4a0efe53894acc8 ">+6/-0</a>
</td>
</tr>
</table></details></td></tr></tr></tbody></table>
</details>
___
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-01-16 20:18:52 +05:30