Skip to content

ComponentFactories doesn't work if registering AddSyncfusionBlazor on services #1129

@BenSchoen

Description

@BenSchoen

Hello

Thanks for creating this awesome library. I found a little issue:

I have a Component1 with a SfButton and a Component2 inside. I try to stub the Component2, but the button i would use, because i want to test some functionality with him. Therefore i have to call AddSyncfusionBlazor to register the services. If i do that the ComponentFactories.AddStub has no effect anymore....

Is there a work around to add the Syncfusion components and using the ComponentsFactroy together?

I have created a little project to demonstrate the issue in two tests:
TestBunitComponentFactories.zip

Regards
Benny

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions