Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Add test timeout method overload (#11)
Leendert de Borstfbc3466345c3
diff --git a/src/AliasDb/AliasDbContext.cs b/src/AliasDb/AliasDbContext.csindex 36c58287d..eac1c9066 100644--- a/src/AliasDb/AliasDbContext.cs+++ b/src/AliasDb/AliasDbContext.cs@@ -5,12 +5,11 @@// </copyright>//------------------------------------------------------------------------using Microsoft.Extensions.Configuration;-namespace AliasDb;using Microsoft.AspNetCore.Identity.EntityFrameworkCore;using Microsoft.EntityFrameworkCore;+using Microsoft.Extensions.Configuration;/// <summary>/// The AliasDbContext class.diff --git a/src/Tests/AliasVault.E2ETests/Common/PlaywrightTest.cs b/src/Tests/AliasVault.E2ETests/Common/PlaywrightTest.csindex 37fc2bdb4..6cf0f0481 100644--- a/src/Tests/AliasVault.E2ETests/Common/PlaywrightTest.cs+++ b/src/Tests/AliasVault.E2ETests/Common/PlaywrightTest.cs@@ -127,6 +127,17 @@ public class PlaywrightTestawait Page.WaitForURLAsync(url, new PageWaitForURLOptions() { Timeout = TestDefaults.DefaultTimeout });}+ /// <summary>+ /// Wait for the specified URL to be loaded with a custom timeout.+ /// </summary>+ /// <param name="url">The URL to wait for. This may also contains wildcard such as "**/user/login".</param>+ /// <param name="timeoutInMs">Custom timeout in milliseconds.</param>+ /// <returns>Async task.</returns>+ protected async Task WaitForURLAsync(string url, int timeoutInMs)+ {+ await Page.WaitForURLAsync(url, new PageWaitForURLOptions() { Timeout = timeoutInMs });+ }+/// <summary>/// Register a new random account./// </summary>@@ -139,7 +150,7 @@ public class PlaywrightTest// Check that we get redirected to /user/login when accessing the root URL and not authenticated.await Page.GotoAsync(AppBaseUrl);- await WaitForURLAsync("**/user/login");+ await WaitForURLAsync("**/user/login", 20000);// Try to register a new account.var registerButton = Page.Locator("a[href='/user/register']");