Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BlazorWebJsInitializersTest don't run #54367

Closed
SteveSandersonMS opened this issue Mar 5, 2024 · 0 comments · Fixed by #57548
Closed

BlazorWebJsInitializersTest don't run #54367

SteveSandersonMS opened this issue Mar 5, 2024 · 0 comments · Fixed by #57548
Assignees
Labels
area-blazor Includes: Blazor, Razor Components task
Milestone

Comments

@SteveSandersonMS
Copy link
Member

SteveSandersonMS commented Mar 5, 2024

The E2E tests InitializersRunsModernCallbacksByDefaultWhenPresent and InitializersRunsClassicInitializersWhenEnabled both don't actually run because of how they use [MemberData].

The log output from CI contains this:

      <RunInfo computerName="fv-az113-200" outcome="Warning" timestamp="2024-03-05T09:39:31.3812148+00:00">
        <Text>[xUnit.net 00:00:00.92] Microsoft.AspNetCore.Components.E2ETests: Non-serializable data ('System.Object[]') found for 'Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.BlazorWebJsInitializersTest.InitializersRunsModernCallbacksByDefaultWhenPresent'; falling back to single test case.</Text>
      </RunInfo>
      <RunInfo computerName="fv-az113-200" outcome="Warning" timestamp="2024-03-05T09:39:31.3821359+00:00">
        <Text>[xUnit.net 00:00:00.92] Microsoft.AspNetCore.Components.E2ETests: Non-serializable data ('System.Object[]') found for 'Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.BlazorWebJsInitializersTest.InitializersRunsClassicInitializersWhenEnabled'; falling back to single test case.</Text>
      </RunInfo>

There are meant to be 8 sub-cases, but it looks like it arbitrarily just runs one of them (perhaps the first?).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants