Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update tests (#2100)
Leendert de Borstc155e7917f54
diff --git a/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard3/CodeLockoutTests.cs b/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard3/CodeLockoutTests.csindex 2bd20e3ed..d71daf5ac 100644--- a/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard3/CodeLockoutTests.cs+++ b/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard3/CodeLockoutTests.cs@@ -51,7 +51,7 @@ public class CodeLockoutTests : TwoFactorAuthBase// Fill in wrong code 11 times. After 11 times, the account should be locked.// Note: the actual lockout happens on the 10th wrong attempt, but the lockout message is only displayed// on the next attempt, so we need to try 11 times to see the lockout message.- var twoFactorSubmitButton = Page.Locator("form[name='login-with-2fa'] button[type='submit']");+ var twoFactorSubmitButton = Page.Locator("button[type='submit']");for (var i = 0; i < 11; i++){await Page.Locator("input[id='two-factor-code']").FillAsync("000000");diff --git a/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard3/TwoFactorAuthTests.cs b/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard3/TwoFactorAuthTests.csindex 8c1558b74..a7f7be138 100644--- a/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard3/TwoFactorAuthTests.cs+++ b/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard3/TwoFactorAuthTests.cs@@ -60,7 +60,7 @@ public class TwoFactorAuthTests : TwoFactorAuthBasevar totpField = await WaitForAndGetElement("input[id='two-factor-code']");await totpField.FillAsync(totpCode);- var twoFactorSubmitButton = Page.Locator("form[name='login-with-2fa'] button[type='submit']");+ var twoFactorSubmitButton = Page.Locator("button[type='submit']");await twoFactorSubmitButton.ClickAsync();// Check if we get redirected to the index page.