Skip to content

Commit

Permalink
Update forbid test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexhiggins732 committed Feb 21, 2024
1 parent 8165155 commit c427ec7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public async Task UserIsAbleToLoginAndLogout()
{
// Clear headers
Client.DefaultRequestHeaders.Clear();

const string accountLoginAction = "/Account/#";
var loginResponse = await Client.GetAsync(accountLoginAction);
loginResponse.EnsureSuccessStatusCode();
Expand Down Expand Up @@ -122,7 +122,7 @@ public async Task UserIsAbleToLoginAndLogout()
// Assert Identity cookie
existsCookie.Should().BeTrue();

var logoutoutUrl= "/Account/Logout"; Client.DefaultRequestHeaders.Clear();
var logoutoutUrl = "/Account/Logout"; Client.DefaultRequestHeaders.Clear();
var logoutResponse = await Client.GetAsync(logoutoutUrl);
logoutResponse.EnsureSuccessStatusCode();

Expand Down Expand Up @@ -183,8 +183,8 @@ public async Task CanNotGetArbirtraryExternalLoginRedirect()

// Login
var requestMessage = RequestHelper.CreatePostRequestWithCookies(loginUrl, loginDataForm, loginResponse);

await Assert.ThrowsAsync<Exception>(async () => await Client.SendAsync(requestMessage));
var response = await Client.SendAsync(requestMessage);
response.StatusCode.Should().Be(HttpStatusCode.InternalServerError);

}
[Fact]
Expand Down

0 comments on commit c427ec7

Please # to comment.