mengw15 opened a new issue, #6430: URL: https://github.com/apache/texera/issues/6430
### Task Summary `frontend/src/app/workspace/service/ai-analyst/ai-analyst.service.ts` (codecov ~32%, no spec) is an HttpClient service. Cover with Vitest + `HttpClientTestingModule`. See `frontend/TESTING.md`. ### Behavior to cover - `isOpenAIEnabled()` -> GET (`responseType: "text"`); emits `true`/`false` (with a `catchError` fallback to `false` on failure) - `sendPromptToOpenAI(inputPrompt)` -> returns a streaming `Observable<string>`; cover at least the happy path and error propagation (this one is a manual `new Observable(...)` wrapper — scope the assertions to its observable contract) - assert method / URL for `isOpenAIEnabled` via `HttpTestingController` ### Task Type - [ ] Refactor / Cleanup - [ ] DevOps / Deployment / CI - [x] Testing / QA - [ ] Documentation - [ ] Performance - [ ] Other -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
