Fixup test broken during dependency update (#12336)
This commit is contained in:
parent
4bbfd4dd0a
commit
c8c7825c94
|
|
@ -404,7 +404,7 @@ namespace Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests
|
|||
|
||||
await Client.HubConnection.InvokeAsync(
|
||||
"DispatchBrowserEvent",
|
||||
JsonSerializer.Serialize(browserDescriptor, new JsonSerializerOptions() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }),
|
||||
JsonSerializer.Serialize(browserDescriptor, TestJsonSerializerOptionsProvider.Options),
|
||||
"{Invalid:{\"payload}");
|
||||
|
||||
Assert.Contains(
|
||||
|
|
@ -439,8 +439,8 @@ namespace Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests
|
|||
|
||||
await Client.HubConnection.InvokeAsync(
|
||||
"DispatchBrowserEvent",
|
||||
JsonSerializer.Serialize(browserDescriptor, new JsonSerializerOptions() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }),
|
||||
JsonSerializer.Serialize(mouseEventArgs, new JsonSerializerOptions() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }));
|
||||
JsonSerializer.Serialize(browserDescriptor, TestJsonSerializerOptionsProvider.Options),
|
||||
JsonSerializer.Serialize(mouseEventArgs, TestJsonSerializerOptionsProvider.Options));
|
||||
|
||||
Assert.Contains(
|
||||
logEvents,
|
||||
|
|
@ -473,7 +473,7 @@ namespace Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests
|
|||
EventArgsType = "mouse",
|
||||
};
|
||||
|
||||
var serializerOptions = new JsonSerializerOptions() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase };
|
||||
var serializerOptions = TestJsonSerializerOptionsProvider.Options;
|
||||
var uiArgs = JsonSerializer.Serialize(mouseEventArgs, serializerOptions);
|
||||
|
||||
await Assert.ThrowsAsync<TaskCanceledException>(() => Client.InvokeDotNetMethod(
|
||||
|
|
|
|||
Loading…
Reference in New Issue