package testkit

import (
	"testing"

	"github.com/stretchr/testify/require"

	"github.com/tidbcloud/AgentTeam/internal/api/agent"
	"github.com/tidbcloud/AgentTeam/internal/service/approvalapp"
)

func TestAgentTestCompositionInjectsTeamApprovalRuntime(t *testing.T) {
	runtime := StartRuntimeWithoutBackgroundWorkers(t)
	deps := runtime.Store.AgentStorePortsDeps()

	require.NotNil(t, deps.ApprovalSubjects)
	require.NotNil(t, deps.Teams)
	var _ agent.ApprovalRuntime = (*approvalapp.SubjectRegistry)(nil)
}
