mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 16:10:43 +00:00
## Summary - **Root cause**: `alertManagement.js` used `alert-list-search-across-folders-toggle-btn` but `AlertList.vue` renders a plain `<button>` with `data-test="alert-list-search-across-folders-toggle"` — no `-btn` suffix. - Fixed the same stale `-btn` selector in `dashboardPage.js` (dashboard toggle is also a plain `<button>`). ## Failing tests fixed - `alerts-regression.spec.js:128` — Bug #9967: PromQL alert creation - `alerts-stream-switching-regression.spec.js:338` — Bug #11577: Alert preview chart y-axis Both were timing out at 45s trying to click the nonexistent `*-toggle-btn` selector. ## Files changed - `tests/ui-testing/pages/alertsPages/alertManagement.js` — 2 selector fixes (lines 214, 481) - `tests/ui-testing/pages/dashboardPages/dashboardPage.js` — 1 selector fix + removed stale OSwitch comment ## Test plan - [ ] Run `npx playwright test playwright-tests/RegressionSet/alerts-regression.spec.js` locally - [ ] Run `npx playwright test playwright-tests/RegressionSet/alerts-stream-switching-regression.spec.js` locally - [ ] Verify CI Alerts-Regression job passes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>