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(
|
await Client.HubConnection.InvokeAsync(
|
||||||
"DispatchBrowserEvent",
|
"DispatchBrowserEvent",
|
||||||
JsonSerializer.Serialize(browserDescriptor, new JsonSerializerOptions() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }),
|
JsonSerializer.Serialize(browserDescriptor, TestJsonSerializerOptionsProvider.Options),
|
||||||
"{Invalid:{\"payload}");
|
"{Invalid:{\"payload}");
|
||||||
|
|
||||||
Assert.Contains(
|
Assert.Contains(
|
||||||
|
|
@ -439,8 +439,8 @@ namespace Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests
|
||||||
|
|
||||||
await Client.HubConnection.InvokeAsync(
|
await Client.HubConnection.InvokeAsync(
|
||||||
"DispatchBrowserEvent",
|
"DispatchBrowserEvent",
|
||||||
JsonSerializer.Serialize(browserDescriptor, new JsonSerializerOptions() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }),
|
JsonSerializer.Serialize(browserDescriptor, TestJsonSerializerOptionsProvider.Options),
|
||||||
JsonSerializer.Serialize(mouseEventArgs, new JsonSerializerOptions() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase }));
|
JsonSerializer.Serialize(mouseEventArgs, TestJsonSerializerOptionsProvider.Options));
|
||||||
|
|
||||||
Assert.Contains(
|
Assert.Contains(
|
||||||
logEvents,
|
logEvents,
|
||||||
|
|
@ -473,7 +473,7 @@ namespace Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests
|
||||||
EventArgsType = "mouse",
|
EventArgsType = "mouse",
|
||||||
};
|
};
|
||||||
|
|
||||||
var serializerOptions = new JsonSerializerOptions() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase };
|
var serializerOptions = TestJsonSerializerOptionsProvider.Options;
|
||||||
var uiArgs = JsonSerializer.Serialize(mouseEventArgs, serializerOptions);
|
var uiArgs = JsonSerializer.Serialize(mouseEventArgs, serializerOptions);
|
||||||
|
|
||||||
await Assert.ThrowsAsync<TaskCanceledException>(() => Client.InvokeDotNetMethod(
|
await Assert.ThrowsAsync<TaskCanceledException>(() => Client.InvokeDotNetMethod(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue