diff --git a/components/providers/providers_test.go b/components/providers/providers_test.go new file mode 100644 index 0000000..a670bea --- /dev/null +++ b/components/providers/providers_test.go @@ -0,0 +1,382 @@ +package providers + +import ( + "context" + "strings" + "testing" + + "github.com/starfleetcptn/gomft/components/providers/common" + "github.com/starfleetcptn/gomft/components/providers/destination" + "github.com/starfleetcptn/gomft/components/providers/source" + "github.com/stretchr/testify/assert" +) + +// Test that both source and destination providers can be rendered together with common components +func TestProvidersIntegration(t *testing.T) { + // Create context for test + ctx := context.Background() + assert := assert.New(t) + + // Test rendering common components + { + var buf strings.Builder + err := common.NameField().Render(ctx, &buf) + assert.NoError(err, "Failed to render NameField") + html := buf.String() + assert.Contains(html, `