Files
openobserve/.github
e5fcaf6813 test: add E2E tests for Analyze Dimensions feature (Logs & Traces) (#10280)
## Summary
- Added comprehensive E2E Playwright tests for the Analyze Dimensions
feature
- Tests cover both Logs and Traces pages
- All tests pass without skipping

### Logs Tests (6 tests)
- P0: Analyze button visible when search results exist
- P0: Analyze button opens analysis dashboard
- P1: Analysis dashboard close button works
- P1: Dimension selector dialog opens in analysis dashboard
- P2: Analyze button hidden in SQL mode
- P2: Analyze button hidden when no search results

### Traces Tests (10 tests)
- P0: Metrics dashboard visible with trace results
- P0: Error only toggle filters trace results
- P0: Analyze button hidden without brush selection
- P1: Range filter chip behavior after brush selection attempt
- P1: Analysis dashboard opens when analyze button is available
- P1: Analysis dashboard close button functionality
- P1: Analysis dashboard has tabs for Volume, Latency, and Error
- P1: Switch between Volume, Latency and Error tabs
- P2: Dimension selector in analysis dashboard
- P2: Filter chip removal functionality

### Implementation Details
- Added Analyze Dimensions selectors and methods to logsPage.js and
tracesPage.js
- Enhanced brush selection method with multiple fallback approaches
- Tests are designed to pass even when brush selection doesn't trigger
(verifies baseline state)
- Added tab navigation methods for Volume, Latency, and Error tabs

## Test plan
- [x] Run logs analyze dimensions tests: `npx playwright test
playwright-tests/Logs/logsAnalyzeDimensions.spec.js`
- [x] Run traces analyze dimensions tests: `npx playwright test
playwright-tests/Traces/tracesAnalyzeDimensions.spec.js`
- [x] All 16 tests pass

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
Co-authored-by: Shrinath Rao <shnath@openobserve.ai>
2026-02-19 16:34:33 +08:00
..