mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-05 00:09:35 +00:00
## Summary - Fixes Playwright selectors broken by the UX revamp of buttons and tabs (PRs #11595, #11652) - The migration from Quasar to Reka UI changed active state from CSS `selected` class to `data-state="on"`/`data-state="active"` attributes ## Changes - **themePage.js**: Replace broken `button[data-o2-btn]` with `[data-test="navbar-theme-toggle-btn"]` for theme switcher - **logsPage.js**: Replace `toHaveClass(/selected/)` with `toHaveAttribute('data-state', 'on')` for patterns toggle - **serviceGraphPage.js**: Same selected→data-state fix for graph/tree view toggle buttons - **jobScheduler.js**: Replace `getByRole('cell', ...)` with `:visible`-filtered `[data-test="tab-more_details"]` to handle multi-element matches from v-show - **org.spec.js**: Increase validation message timeout from 3s to 5s - **jobSearch.spec.js**: Add 10s wait before `viewJobDetails()` for job processing ## Test plan - [x] `searchPatterns.spec.js` — 15/15 passed - [x] `theme-management.spec.js` — 5/5 passed - [x] `jobSearch.spec.js` — 8/8 passed (parallel) - [x] `org.spec.js` — 11/11 passed - [x] `join.spec.js` — 12/12 passed - [x] `logspage.spec.js` — 22/28 passed (3 pre-existing flaky, all pass in isolation) 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
zinc-observe-ui-automation
Playwright UI Testing
Installation
npm install
Running Tests
Using Playwright Runner UI (Recommended)
cd playwright-runner
npm start
Then open http://localhost:3000 to access the test runner interface.
Using Command Line
# Run all tests
npx playwright test
# Run specific test by tag
npx playwright test -g @alertsImportExport
# Run in headed mode
npx playwright test --headed
# Run specific test file
npx playwright test Alerts/alerts-import.spec.js
Environment Configuration
Tests can be configured using:
- Playwright Runner UI - Set environment variables through the web interface
- Environment Variables - Set variables in terminal or .env file