agent_crew icon indicating copy to clipboard operation
agent_crew copied to clipboard

test: E2E validation of model provider constraint flow

Open sre-helmcode opened this issue 8 months ago • 1 comments

Summary

End-to-end tests validating the complete model provider constraint flow using Playwright.

Test Scenarios

  1. Provider selection flow:

    • Select OpenCode → verify model provider cards appear
    • Select Claude → verify model provider cards disappear
  2. Model provider selection:

    • Select Anthropic → verify only Claude models in dropdown
    • Select OpenAI → verify only GPT models in dropdown
    • Select Google → verify only Gemini models in dropdown
  3. Reset behavior:

    • Select models for agents → switch model provider → verify all reset to "inherit"
    • Switch from OpenCode to Claude → verify model provider resets
  4. Step validation:

    • Try to proceed from Step 1 without selecting model provider → verify blocked
  5. Team creation payload:

    • Create team with OpenCode + Anthropic → verify model_provider: "anthropic" in API call
  6. Credential warnings:

    • Configure ANTHROPIC_API_KEY in Settings → select Anthropic → verify no warning
    • Select OpenAI without OPENAI_API_KEY → verify warning shown

Dependencies

  • Depends on helmcode/agent_crew_api#65 (backend validation)
  • Depends on helmcode/agent_crew#53 (frontend selector)

References

  • Plan: Model Provider Constraint + Ollama Support (Phase 1, Issue F1-4)

sre-helmcode avatar Mar 23 '26 19:03 sre-helmcode

Implemented in Phase 1. 13 E2E tests for model provider constraint.

sre-helmcode avatar Mar 23 '26 20:03 sre-helmcode