-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Pin/unpin, UX- and E2E testing improvements (#50)
* feat: Added simple "pin" feature for notes. * feat: Added "Save & Close" option for notes. * refactor: Unified date formatting * feat: Added "Save & Close" for task lists. * feat: Removed "saved"-message * fix: Added missing word-wrap style for notes. * feat: Task list and category filters are now sorted. * feat: Improved Playwright E2E testing environment. * feat: Improved Playwright setup * feat: Improved Playwright E2E tests. * chore: Updated README.md
- Loading branch information
1 parent
dcabe01
commit 2cf5279
Showing
24 changed files
with
1,783 additions
and
3,966 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using Chrono.Shared.Services; | ||
|
||
namespace Chrono.Tests.Helper; | ||
|
||
public class FakeCurrentUserService : ICurrentUserService | ||
{ | ||
public string UserId => "Testing"; | ||
public string UserName => "Testing"; | ||
public bool IsAuthenticated => true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Security.Claims; | ||
using Microsoft.AspNetCore.Authentication; | ||
using Microsoft.AspNetCore.Authorization; | ||
using Microsoft.AspNetCore.Authorization.Policy; | ||
using Microsoft.AspNetCore.Http; | ||
|
||
namespace Chrono.Tests.Helper; | ||
|
||
public class FakePolicyEvaluator : IPolicyEvaluator | ||
{ | ||
public virtual async Task<AuthenticateResult> AuthenticateAsync(AuthorizationPolicy policy, HttpContext context) | ||
{ | ||
var principal = new ClaimsPrincipal(); | ||
principal.AddIdentity(new ClaimsIdentity(Array.Empty<Claim>(), "FakeScheme")); | ||
|
||
return await Task.FromResult(AuthenticateResult.Success(new AuthenticationTicket(principal, | ||
new AuthenticationProperties(), "FakeScheme"))); | ||
} | ||
|
||
public virtual async Task<PolicyAuthorizationResult> AuthorizeAsync(AuthorizationPolicy policy, | ||
AuthenticateResult authenticationResult, HttpContext context, object resource) | ||
{ | ||
return await Task.FromResult(PolicyAuthorizationResult.Success()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
{ | ||
"WebAppUrl": "https://localhost:7151", | ||
"BackendUrl": "https://localhost:7151", | ||
"WebAppUrl": "https://localhost:44463", | ||
"DatabaseFullPath": "/home/.../.../.../data/chrono_test.db", | ||
"Options": { | ||
"Headless": false, | ||
"IgnoreHTTPSErrors": true | ||
}, | ||
"TestUser": { | ||
"Username": "<TODO>", | ||
"Password": "<TODO>" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.