agent_crew icon indicating copy to clipboard operation
agent_crew copied to clipboard

Feature: E2E test suite with Playwright MCP and docker-compose

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

Description

Create a comprehensive E2E, functional, unit, and integration test suite using Playwright MCP. Tests must run against a local environment started with docker-compose.

Test Environment

Tests must be executed after spinning up the local environment:

docker-compose -f /path/to/docker-compose.yml up -d

Wait for all services to be healthy before running tests.

Test Coverage Required

E2E Tests (Playwright MCP)

  • Full user flows: create team → configure agents → deploy → chat → receive response
  • Settings page: add/update/delete environment variables
  • Team Monitor: verify deployment status, agent status
  • Skills: verify skill installation status display

Functional Tests

  • Chat: real-time message delivery without page reload
  • Chat: full history loads on page entry (no lazy loading)
  • Activity panel: events appear in real-time (when implemented)

Unit Tests

  • Component rendering tests
  • Hook tests (useApi, useWebSocket, etc.)
  • Utility function tests

Integration Tests

  • API integration: create/read/update/delete teams, agents
  • WebSocket connection and message handling
  • Error states and recovery

Acceptance Criteria

  • [ ] Test suite runs successfully against docker-compose environment
  • [ ] All critical user flows covered by E2E tests
  • [ ] Unit tests for all major components
  • [ ] Integration tests for API and WebSocket
  • [ ] Tests are repeatable and deterministic
  • [ ] CI-ready (can be run in pipeline)

sre-helmcode avatar Feb 21 '26 21:02 sre-helmcode

Closed via commit 1d8281d — comprehensive E2E and unit test suite (82 E2E + 257 unit tests).

sre-helmcode avatar Feb 21 '26 23:02 sre-helmcode