Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Add webapi call finish content to test pages for improved stability (#63)
Leendert de Borst68c19957e084
diff --git a/src/AliasVault.WebApp/Pages/Test/Test1.razor b/src/AliasVault.WebApp/Pages/Test/Test1.razorindex 42fabeeb8..6054a188e 100644--- a/src/AliasVault.WebApp/Pages/Test/Test1.razor+++ b/src/AliasVault.WebApp/Pages/Test/Test1.razor@@ -18,6 +18,10 @@{<LoadingIndicator />}+else+{+ <p>Test 1 OK.</p>+}@code {private bool IsLoading { get; set; } = true;diff --git a/src/AliasVault.WebApp/Pages/Test/Test2.razor b/src/AliasVault.WebApp/Pages/Test/Test2.razorindex ed2b44c28..a2da4127f 100644--- a/src/AliasVault.WebApp/Pages/Test/Test2.razor+++ b/src/AliasVault.WebApp/Pages/Test/Test2.razor@@ -18,6 +18,10 @@{<LoadingIndicator />}+else+{+ <p>Test 2 OK.</p>+}@code {private bool IsLoading { get; set; } = true;diff --git a/src/Tests/AliasVault.E2ETests/Tests/JwtTokenTests.cs b/src/Tests/AliasVault.E2ETests/Tests/JwtTokenTests.csindex 77ea25c6d..7d0c154ce 100644--- a/src/Tests/AliasVault.E2ETests/Tests/JwtTokenTests.cs+++ b/src/Tests/AliasVault.E2ETests/Tests/JwtTokenTests.cs@@ -24,7 +24,7 @@ public class JwtTokenTests : PlaywrightTest{// Soft navigate to verify that we are logged in.await NavigateUsingBlazorRouter("test/1");- await WaitForURLAsync("**/test/1", "Test webapi call 1.");+ await WaitForURLAsync("**/test/1", "Test 1 OK");// Increase the time by 1 hour to make the JWT token expire.ApiTimeProvider.AdvanceBy(TimeSpan.FromHours(1));@@ -32,7 +32,7 @@ public class JwtTokenTests : PlaywrightTest// Soft navigate to another page to trigger the JWT token refresh// and check if the page is loaded successfully.await NavigateUsingBlazorRouter("test/2");- await WaitForURLAsync("**/test/2", "Test webapi call 2.");+ await WaitForURLAsync("**/test/2", "Test 2 OK");var pageContent = await Page.TextContentAsync("body");Assert.That(pageContent, Does.Contain("Test webapi call 2."), "No page content after refreshing access token.");@@ -50,7 +50,7 @@ public class JwtTokenTests : PlaywrightTest// Soft navigate to verify that we are logged in.var startUrl = "test/1";await NavigateUsingBlazorRouter(startUrl);- await WaitForURLAsync("**/" + startUrl, "Test webapi call 1.");+ await WaitForURLAsync("**/" + startUrl, "Test 1 OK");// Hard reload the page to trigger the unlock page to show up.await Page.ReloadAsync();@@ -70,7 +70,7 @@ public class JwtTokenTests : PlaywrightTestawait submitButton.ClickAsync();// Check if we get redirected back to the page we were trying to access.- await WaitForURLAsync("**/" + startUrl, "AliasVault");+ await WaitForURLAsync("**/" + startUrl, "Test 1 OK");var pageContent = await Page.TextContentAsync("body");Assert.That(pageContent, Does.Contain("Test webapi call 1."), "No index content after unlocking database with a expired JWT token.");@@ -86,7 +86,7 @@ public class JwtTokenTests : PlaywrightTest{// Soft navigate to verify that we are logged in.await NavigateUsingBlazorRouter("test/1");- await WaitForURLAsync("**/test/1", "Test webapi call 1.");+ await WaitForURLAsync("**/test/1", "Test 1 OK");// Increase the time by 1 year to make the JWT token AND refresh token expire.ApiTimeProvider.AdvanceBy(TimeSpan.FromDays(365));