mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 00:09:22 +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>