mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 00:09:22 +00:00
## Summary - Add enrichment table cleanup patterns for orphaned RBAC test data: - `viewer_created_et_*`, `partial_access_et_*`, `health_check_*` - `enrich_basic_*`, `enrich_duplicate_*`, `enrich_invalid_*`, `enrich_protocols_*` - `enrich_table_*`, `enrich_update_append_*`, `enrich_update_replace_*` - `editor_create_test_*` - Add alert cleanup prefixes for RBAC test alerts: - `user_delete_test_*`, `user_update_test_*` - `viewer_delete_test_*`, `viewer_update_test_*` - `editor_create_test_*`, `editor_delete_test_*` - Add stream cleanup patterns: `backfill_source_*`, `backfill_dest_*` - Add log response body on URL enrichment table fetch failure for debugging - Fix precise regex for cleanup-only detection in global-setup.js - Fix null check before Object.keys() in cleanupUrlEnrichmentTables ## Why These patterns clean up orphaned test data from o2-enterprise RBAC tests when individual test teardown fails due to: - Test crashes/failures mid-execution - CI/CD timeouts killing jobs before teardown - API deletion failures during teardown The Playwright cleanup.spec.js serves as a safety net for all orphaned data. ## Test plan - [x] Patterns validated against actual orphaned data on dev2.internal.zinclabs.dev - [x] Source tests identified in o2-enterprise RBAC test files
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