Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

Tweak E2E test flow (#820)

Leendert de Borst29b5501a01d6
diff --git a/apps/server/AliasVault.Client/Main/Pages/Credentials/Home.razor b/apps/server/AliasVault.Client/Main/Pages/Credentials/Home.razor
index 573cf7577..626224cb9 100644
--- a/apps/server/AliasVault.Client/Main/Pages/Credentials/Home.razor
+++ b/apps/server/AliasVault.Client/Main/Pages/Credentials/Home.razor
@@ -184,6 +184,7 @@ else
{
// Redirect to the welcome page.
NavigationManager.NavigateTo("/welcome");
+ return;
}
// Apply sort based on config.
diff --git a/apps/server/Tests/AliasVault.E2ETests/Common/ClientPlaywrightTest.cs b/apps/server/Tests/AliasVault.E2ETests/Common/ClientPlaywrightTest.cs
index 50cdb6721..68231ac5e 100644
--- a/apps/server/Tests/AliasVault.E2ETests/Common/ClientPlaywrightTest.cs
+++ b/apps/server/Tests/AliasVault.E2ETests/Common/ClientPlaywrightTest.cs
@@ -403,6 +403,9 @@ public class ClientPlaywrightTest : PlaywrightTest
if (checkForSuccess)
{
await WaitForUrlAsync("welcome**", WelcomeMessage);
+
+ // Wait for 100ms as without this the welcome redirect sometimes is not fully awaited and is triggered again.
+ await Task.Delay(100);
}
}
}