Skip to content

Commit

Permalink
Fixed SCSS variables reference issue (dotnet-architecture#218)
Browse files Browse the repository at this point in the history
Fixed tests relying on /sign-in renamed to /login
  • Loading branch information
ardalis authored Feb 22, 2019
1 parent 82b7201 commit 5d181f5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@
background-color: transparent;
color: #75b918;
transition: all 0.35s; }

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@import '../../variables';
@import '../../_variables.scss';

.esh-basketstatus {
cursor: pointer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public AccountControllerSignIn(CustomWebApplicationFactory<Startup> factory)
[Fact]
public async Task ReturnsSignInScreenOnGet()
{
var response = await Client.GetAsync("/account/sign-in");
var response = await Client.GetAsync("/identity/account/login");
response.EnsureSuccessStatusCode();
var stringResponse = await response.Content.ReadAsStringAsync();

Expand All @@ -50,7 +50,7 @@ public async Task RegexMatchesValidRequestVerificationToken()
[Fact]
public async Task ReturnsFormWithRequestVerificationToken()
{
var response = await Client.GetAsync("/account/sign-in");
var response = await Client.GetAsync("/identity/account/login");
response.EnsureSuccessStatusCode();
var stringResponse = await response.Content.ReadAsStringAsync();

Expand All @@ -69,7 +69,7 @@ private string GetRequestVerificationToken(string input)
[Fact]
public async Task ReturnsSuccessfulSignInOnPostWithValidCredentials()
{
var getResponse = await Client.GetAsync("/account/sign-in");
var getResponse = await Client.GetAsync("/identity/account/login");
getResponse.EnsureSuccessStatusCode();
var stringResponse1 = await getResponse.Content.ReadAsStringAsync();
string token = GetRequestVerificationToken(stringResponse1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public async Task ReturnsRedirectGivenAnonymousUser()
var redirectLocation = response.Headers.Location.OriginalString;

Assert.Equal(HttpStatusCode.Redirect, response.StatusCode);
Assert.Contains("Account/Signin", redirectLocation);
Assert.Contains("/Account/Login", redirectLocation);
}
}
}

0 comments on commit 5d181f5

Please sign in to comment.