openobserve/tests/ui-testing/pages/alertsPages
Shrinath Rao de95f7f2d8
fix: restore Table default log-detail view (#13368) + heal alert-name inline-edit read (#13585)
## What & why

Two **Playwright Regression** nightly failures, reproduced identically
on both OSS ([run
30785096054](https://github.com/openobserve/openobserve/actions/runs/30785096054))
and ENT ([run
30785071382](https://github.com/openobserve/o2-enterprise/actions/runs/30785071382))
— same two shared-`tests/` specs, all 3 retries failed each. Both are
OSS-owned specs (ENT overlays only its own `tests/*` and builds OSS
`web/`), so this single OSS PR fixes both nightlies.

### 1. Logs — real product regression (`logs-regression.spec.js:1158`)
`Log detail sidebar opens with Table tab by default (#13368)` → `Error:
Table tab should be selected by default`.

**Root cause:**
[#13368](https://github.com/openobserve/openobserve/pull/13368) (Jul 23)
deliberately made the log-detail sidebar open on the **Table** tab.
[#13451](https://github.com/openobserve/openobserve/pull/13451) (Jul 30,
*"table migration to same components"*) silently flipped
`detailTableInitialTab` back to `"json"` in `SearchResult.vue` (both the
`ref` init and the per-open reset). The unchanged test correctly caught
the reverted behavior.

**Fix:** restore `"table"` as the default log-detail tab. Product fix —
no test change.

### 2. Alerts — stale test vs redesigned component
(`alerts-stream-switching.spec.js:443`)
`Bug #11577: Alert preview chart y-axis displays numeric values` →
`TimeoutError: locator.inputValue: Timeout 45000ms exceeded`.

**Root cause:** the alert name became an **`OInlineEdit`** title
(`OFormInlineEdit`, from the
[#13547](https://github.com/openobserve/openobserve/pull/13547) Alerts
revamp). In display mode the value lives in the `…-value` span; the
`…-input` only exists **while editing**. The test read `.inputValue()`
on the non-existent input → 45s timeout.

**Fix:** read the committed display value via a new `getAlertName()`
page-object helper (with an edit-mode `inputValue()` fallback).

## Verification
- **Alerts #11577** —  passed locally against a local O2 build (`1
passed`); `getAlertName()` reads the name and the full
save/verify/delete flow works.
- **Logs #13368** — restores the exact `detailTableInitialTab = "table"`
value #13368 set and the unchanged test already validated as green.
Confirmed by this run's Logs-Regression job + the dispatched ENT e2e
gate.

## Scope
- `web/src/plugins/logs/SearchResult.vue` — 2 lines (product)
-
`tests/ui-testing/playwright-tests/RegressionSet/Alerts/alerts-stream-switching.spec.js`
— read display value
- `tests/ui-testing/pages/alertsPages/alertsPage.js` — `alertNameValue`
locator + `getAlertName()` helper
2026-08-03 07:19:28 +00:00
..
alertBulkOperations.js feat: FE shortcut support (#12460) 2026-07-02 07:18:36 +00:00
alertCreationWizard.js feat(web): inline-rename page titles with auto-generated default names (#13520) 2026-07-31 08:50:19 +00:00
alertDestinationsPage.js feat(nav): add Reliability menu, restore deferred SLO routes (#13577) 2026-08-02 05:44:01 +00:00
alertDetailPage.js feat: per-group and per-series alerting, and SLO measurement (#13547) 2026-07-31 07:23:22 +00:00
alertHistoryPage.js test: add alert history and report bulk-ops E2E tests (main / UX revamp) (#12883) 2026-06-26 11:28:00 +00:00
alertManagement.js feat: per-group and per-series alerting, and SLO measurement (#13547) 2026-07-31 07:23:22 +00:00
alertTemplatesPage.js feat(nav): add Reliability menu, restore deferred SLO routes (#13577) 2026-08-02 05:44:01 +00:00
alertsFormValidationPage.js feat(nav): add Reliability menu, restore deferred SLO routes (#13577) 2026-08-02 05:44:01 +00:00
alertsPage.js fix: restore Table default log-detail view (#13368) + heal alert-name inline-edit read (#13585) 2026-08-03 07:19:28 +00:00
oselectHelpers.js test: fix flaky Alerts OSelect dropdowns (click trigger, not root div) (#12869) 2026-06-24 14:36:41 +00:00