Standardize live search Playwright setup lane
This commit is contained in:
@@ -334,6 +334,29 @@ E2E config: `src/Web/StellaOps.Web/playwright.e2e.config.ts`
|
||||
- Timeout: 60s per test
|
||||
- Workers: 1 (sequential)
|
||||
|
||||
### Standard live-search browser lane
|
||||
|
||||
For search verification against a freshly ingested local AdvisoryAI corpus, use the dedicated Web acceptance lane instead of manually sequencing database startup, CLI prepare, and rebuild calls:
|
||||
|
||||
```bash
|
||||
cd src/Web/StellaOps.Web
|
||||
npm run test:e2e:search:live
|
||||
```
|
||||
|
||||
This lane:
|
||||
- starts or reuses `devops/compose/docker-compose.advisoryai-knowledge-test.yml`
|
||||
- starts or reuses the source-run AdvisoryAI WebService on `http://127.0.0.1:10451`
|
||||
- publishes the local CLI to `.artifacts/stella-cli/` when needed
|
||||
- runs `advisoryai sources prepare --json`
|
||||
- rebuilds `POST /v1/advisory-ai/index/rebuild` then `POST /v1/search/index/rebuild`
|
||||
- proves the grounded smoke query `database connectivity`
|
||||
- runs the live browser suite through `src/Web/StellaOps.Web/playwright.live-search.config.ts`
|
||||
|
||||
Useful overrides:
|
||||
- `PLAYWRIGHT_LIVE_SEARCH_SKIP_DOCKER=1`
|
||||
- `LIVE_ADVISORYAI_SEARCH_BASE_URL=http://127.0.0.1:10451`
|
||||
- `AdvisoryAI__KnowledgeSearch__ConnectionString=...`
|
||||
|
||||
---
|
||||
|
||||
## Configuration reference
|
||||
|
||||
Reference in New Issue
Block a user