Skip to content

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

Update .net e2e playwright test navigation wait

Leendert de Borstbbc86b693d9a
diff --git a/apps/server/Tests/AliasVault.E2ETests/Common/PlaywrightTest.cs b/apps/server/Tests/AliasVault.E2ETests/Common/PlaywrightTest.cs
index 3abae64f9..0949ced7a 100644
--- a/apps/server/Tests/AliasVault.E2ETests/Common/PlaywrightTest.cs
+++ b/apps/server/Tests/AliasVault.E2ETests/Common/PlaywrightTest.cs
@@ -122,6 +122,12 @@ public abstract class PlaywrightTest
// Perform soft navigation within the app
await Page.EvaluateAsync($"window.blazorNavigate('{relativeUrl}')");
+
+ // Wait for the URL to change to the expected value
+ await Page.WaitForURLAsync("**/" + relativeUrl, new PageWaitForURLOptions
+ {
+ Timeout = TestDefaults.DefaultTimeout,
+ });
}
/// <summary>