Skip to content

Commit

Permalink
Fix ut ConnectionStringDialogMustBeCancelledOnClickOnCancel
Browse files Browse the repository at this point in the history
Fix ut ConnectionStringDialogMustBeCancelledOnClickOnCancel


Fix ut ConnectionStringDialogMustBeCancelledOnClickOnCancel
  • Loading branch information
hocinehacherouf committed Jun 28, 2022
1 parent 345a2f2 commit 0259af6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public async Task ConnectionStringDialogMustBeCancelledOnClickOnCancel()
var deviceId = Guid.NewGuid().ToString();

_ = MockHttpClient
.When(HttpMethod.Get, $"api/devices/{deviceId}/credentials")
.When(HttpMethod.Get, $"/api/edge/devices/{deviceId}/credentials")
.RespondJson(new EnrollmentCredentials());

var cut = RenderComponent<MudDialogProvider>();
Expand All @@ -118,6 +118,7 @@ public async Task ConnectionStringDialogMustBeCancelledOnClickOnCancel()
// Act
await cut.InvokeAsync(() => dialogReference = this.dialogService?.Show<ConnectionStringDialog>(string.Empty, parameters));
cut.WaitForElement("#cancel").Click();

var result = await dialogReference.Result;

// Assert
Expand Down

0 comments on commit 0259af6

Please sign in to comment.