@formname
attribute always causes an error: System.InvalidOperationException : Invalid element frame type 'NamedEvent'
#1438
Labels
investigate
This issue require further investigation before closing.
Describe the bug
I get an error when trying to test a component that contains a
form
with the@formname
attributeIf I remove the
@formname
attribute, the error no longer occurs.Here is a simple, reproducible repository
https://github.com/suzu2469/bunit-sample-tests
Example:
Testing this component: TestProduct.razor
With this test:
Results in this output:
Expected behavior:
The test succeeds without error.
Version info:
Additional context:
I did a
dotnet test
immediately after starting a new Codespaces with the above repositories and the results were the sameThe text was updated successfully, but these errors were encountered: