mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 08:09:24 +00:00
Added comprehensive tests for: - PR #10949: Duplicate patterns fix - PR #10965: Tokenized wildcard chips & anomaly detection New Tests Added (5): 1. should not display duplicate patterns (@P0 @smoke) - Verifies all patterns are unique (no duplicates) - Tests PR #10949 fix 2. should display tokenized wildcard chips (@P1 @functional) - Verifies wildcard tokenization (e.g., <:TIMESTAMP>, <*>) - Tests PR #10965 tokenization feature 3. should display wildcard chip tooltips (@P1 @functional) - Tests hover tooltips showing sample wildcard values - Tests PR #10965 tooltip feature 4. should display anomaly detection badges (@P1 @functional) - Verifies anomaly indicators for rare patterns - Tests PR #10965 anomaly detection 5. should display pattern statistics in details dialog (@P1 @functional) - Verifies z_score, frequency, percentage display - Tests PR #10965 statistics feature Page Object Updates: - Added 7 new methods to logsPage.js: * inspectPatternCardDOM() - DOM inspection * getWildcardChip() - Wildcard chip selector * getTooltip() - Tooltip selector * getAnomalyColumnData() - Anomaly data extraction * getPatternDetailsDialogContent() - Dialog content * expectPatternIncludeBtnActive() - Include button state * expectPatternExcludeBtnActive() - Exclude button state Sentinel Audit Fixes: - Moved all raw selectors to page object methods - Added missing assertions to Include/Exclude button tests - All tests now follow Page Object Model pattern Cleanup: - Added e2e_http_patterns stream to cleanup.spec.js Test Results: - All 5 new tests passing - Include/Exclude button tests verified with assertions --------- Co-authored-by: Claude <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