mirror of
https://github.com/openobserve/openobserve.git
synced 2026-11-03 16:10:21 +00:00
## Summary - Migrate `multipleSDRPatterns.spec.js` for alpha1 cloud auth compatibility - Use `getAuthHeaders()`/`getOrgIdentifier()` from `cloud-auth.js` instead of hardcoded Basic Auth - Convert `beforeAll` to setup test using `page.request.post()` (sends browser cookies for cloud management APIs) - Remove dead code: `fetchWithRetry()`, `afterAll` cleanup, unused `allTestPatterns` variable, unused `expect` import - 8 other SDR spec files required no changes (already cloud-compatible) ## Test plan - [x] All 20 SDR tests passed locally against alpha1 cloud (9 spec files) - [x] `multipleSDRPatterns.spec.js` — 2/2 passed (setup + 10-step sequential flow) - [x] Sentinel audit: 10/10 checks passed
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