mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-06 08:09:24 +00:00
- Wait for q-dialog to be visible before searching for SQL content - Use specific selectors (pre.sql-query, .sql-query-container pre) matching Vue component - Scope selectors to dialog to avoid matching other pre elements - Increase timeout from 2000ms to 5000ms for dialog animation + API response - Filter out "No SQL query available" fallback message 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