Commit Graph
7 Commits
Author SHA1 Message Date
+5 ae22a74e62 feat: ux improvement main (#11838)
#11720

Design at:

https://github.com/openobserve/designs/blob/main/dashboards/ux-improvement-dialog/design.md

---------

---------

Co-authored-by: ktx-vaidehi <134508096+ktx-vaidehi@users.noreply.github.com>
Co-authored-by: Abhay Padamani <141122205+ktx-abhay@users.noreply.github.com>
Co-authored-by: Sai Nikhil <nikhil@openobserve.ai>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: ktx-akshay <akshay.patil@kiara.tech>
Co-authored-by: Bhargav <BJP232004@GMAIL.COM>
Co-authored-by: ktx-mihir <mihir.patel@kiara.tech>
Co-authored-by: ktx-riya <riya.kukadiya@kiara.tech>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Omkar Kesarkhane <127078473+omkarK06@users.noreply.github.com>
Co-authored-by: omkark06 <omkar@zinclabs.io>
Co-authored-by: ktx-vaidehi <vaidehi.akhani@kiara.tech>
Co-authored-by: ktx-abhay <abhay.padamani@kiara.tech>
Co-authored-by: Shrinath Rao <shnath@openobserve.ai>
2026-05-28 11:00:49 +00:00
Shrinath Rao b5d3fec969 test(sdr): migrate multipleSDRPatterns for alpha1 cloud (Set7) (#10868)
## Summary
- Migrate `multipleSDRPatterns.spec.js` for alpha1 cloud auth
compatibility
- Use `getAuthHeaders()`/`getOrgIdentifier()` from `cloud-auth.js`
instead of hardcoded Basic Auth
- Convert `beforeAll` to setup test using `page.request.post()` (sends
browser cookies for cloud management APIs)
- Remove dead code: `fetchWithRetry()`, `afterAll` cleanup, unused
`allTestPatterns` variable, unused `expect` import
- 8 other SDR spec files required no changes (already cloud-compatible)

## Test plan
- [x] All 20 SDR tests passed locally against alpha1 cloud (9 spec
files)
- [x] `multipleSDRPatterns.spec.js` — 2/2 passed (setup + 10-step
sequential flow)
- [x] Sentinel audit: 10/10 checks passed
2026-03-12 13:50:14 +05:30
Shrinath RaoandClaude 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
Shrinath Rao 9dbe7076d4 fix(test): resolve SDR multi-pattern timing failure and enforce POM compliance (#10476)
### **User description**
## Summary
- Fix CI timing failure in `multipleSDRPatterns.spec.js` where `Field
multi_data not found in log` occurred due to slow indexing
- Add retry loop with incremental backoff (5 retries) and Loading...
indicator wait to `SDRVerificationPage`
- Replace all `throw new Error()` with proper Playwright `expect()`
assertions
- Remove raw selectors from spec file — all UI interactions now go
through `SDRVerificationPage` page object

## Test plan
- [x] All 3 tests pass locally (setup, 10-step sequential verification,
cleanup)
- [ ] CI run passes on this branch

## Related
- Fixes flaky failure in:
https://github.com/openobserve/o2-enterprise/actions/runs/21890212046/job/63196712500


___

### **PR Type**
Tests, Bug fix


___

### **Description**
- Add retry-based log verification for CI

- Move log UI logic into page object

- Replace thrown errors with Playwright expects

- Stabilize timing, tagging, and cleanup


___

### Diagram Walkthrough


```mermaid
flowchart LR
  A["multipleSDRPatterns.spec.js: SDR multi-pattern test"] 
  B["SDRVerificationPage.verifySingleFieldInLatestLog()"] 
  C["Retry loop + refresh + loading wait"] 
  D["Assertions via Playwright expect()"] 
  E["More reliable CI execution"] 
  A -- "delegates verification to" --> B
  B -- "adds" --> C
  B -- "uses" --> D
  C -- "reduces flakiness in" --> E
  D -- "improves failure diagnostics in" --> E
```



<details> <summary><h3> File Walkthrough</h3></summary>

<table><thead><tr><th></th><th align="left">Relevant
files</th></tr></thead><tbody><tr><td><strong>Tests</strong></td><td><table>
<tr>
  <td>
    <details>
<summary><strong>sdrVerificationPage.js</strong><dd><code>Add robust log
verification retries</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </dd></summary>
<hr>

tests/ui-testing/pages/sdrPages/sdrVerificationPage.js

<ul><li>Import <code>expect</code> and assert via Playwright<br> <li>
Add <code>waitForLoadingToDisappear()</code> helper<br> <li> Add
<code>getLogEntries()</code> with locator fallback<br> <li> Retry
refresh/indexing before verifying fields</ul>


</details>


  </td>
<td><a
href="https://github.com/openobserve/openobserve/pull/10476/files#diff-cdbdaa86cda3a764a369728d276b21b06f3b13c6ef815b29fc7a024b270e2bec">+60/-42</a>&nbsp;
</td>

</tr>

<tr>
  <td>
    <details>
<summary><strong>multipleSDRPatterns.spec.js</strong><dd><code>Refactor
spec to use page object</code>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
</dd></summary>
<hr>

tests/ui-testing/playwright-tests/SDR/multipleSDRPatterns.spec.js

<ul><li>Increase post-ingestion wait to 5s<br> <li> Remove inline
log-verification helper functions<br> <li> Use
<code>pm.sdrVerificationPage.verifySingleFieldInLatestLog()</code><br>
<li> Rename tag to <code>@sdrMultiPattern</code> and assert cleanup
count</ul>


</details>


  </td>
<td><a
href="https://github.com/openobserve/openobserve/pull/10476/files#diff-27c612d13221447d0f5ee4b26066288ae498f189967c5ed6ab7bff07a0caad6b">+14/-91</a>&nbsp;
</td>

</tr>
</table></td></tr></tr></tbody></table>

</details>

___
2026-02-11 15:21:46 +05:30
Shrinath Rao e0d23c42a7 fix(e2e): resolve SDR test failures with test isolation and retry logic (#9632)
## Summary
- Add unique testRunId to pattern and stream names for test isolation
during parallel execution
- Add retry logic to `checkPatternExists` for backend indexing delays (3
attempts with 2s wait)
- Add search box filtering in `selectStream` for reliable stream
selection in long lists
- Add retry logic for Stream Detail button in stream association page
- Fix ingestion retry with exponential backoff for "stream being
deleted" errors
- Update regexPatternManagement test with unique pattern names to avoid
conflicts

## Test plan
- [x] All 23 SDR tests pass reliably in parallel execution
- [x] Verified tests pass when run individually and as a suite
- [x] No regressions in other test suites
2025-12-15 15:55:46 +05:30
Shrinath RaoandYashodhan Joshi 98e35c1632 test: added ent tags to all enterprise tests (#9040)
Co-authored-by: Yashodhan Joshi <yashodhan@openobserve.ai>
2025-11-11 15:14:33 +05:30
Shrinath Rao d70c75e4bc test: added tests for ent repo - not to be run, but maintained (#8956) 2025-11-04 22:26:50 +05:30