Files
openobserve/tests/ui-testing
Shrinath Rao b5d3fec969 test(sdr): migrate multipleSDRPatterns for alpha1 cloud (Set7) (#10868)
## 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
2026-03-12 13:50:14 +05:30
..
2024-11-13 15:13:36 +05:30

zinc-observe-ui-automation

Playwright UI Testing

Installation

npm install

Running Tests

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:

  1. Playwright Runner UI - Set environment variables through the web interface
  2. Environment Variables - Set variables in terminal or .env file