Skip to content

BlazorWebJsInitializersTest don't run #54367

@SteveSandersonMS

Description

@SteveSandersonMS

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?).

Metadata

Metadata

Assignees

Labels

area-blazorIncludes: Blazor, Razor Componentstask

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions