Skip to content

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

Add wait to E2E email test due to new loading animation (#897)

Leendert de Borstc6faa4db976a
diff --git a/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard1/EmailDecryptionTests.cs b/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard1/EmailDecryptionTests.cs
index 1df38ea3b..8c67eb55d 100644
--- a/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard1/EmailDecryptionTests.cs
+++ b/apps/server/Tests/AliasVault.E2ETests/Tests/Client/Shard1/EmailDecryptionTests.cs
@@ -109,6 +109,7 @@ public class EmailDecryptionTests : ClientPlaywrightTest
await WaitForUrlAsync("credentials/**", "Subject");
// Check if the email is visible on the page now.
+ await WaitForUrlAsync("*", textSubject);
var emailContent = await Page.TextContentAsync("body");
Assert.That(emailContent, Does.Contain(textSubject), "Email not (correctly) decrypted and displayed on the credential page. Check email decryption logic.");
@@ -222,6 +223,8 @@ public class EmailDecryptionTests : ClientPlaywrightTest
await WaitForUrlAsync("credentials/**", "Subject");
// Check if the email is visible on the page now.
+ await WaitForUrlAsync("*", textSubject);
+
var emailContent = await Page.TextContentAsync("body");
Assert.That(emailContent, Does.Contain(textSubject), "Email not (correctly) decrypted and displayed on the credential page. Check email decryption logic.");
@@ -339,8 +342,7 @@ public class EmailDecryptionTests : ClientPlaywrightTest
"More than one claim for email address found in database while only one should exist. Check if claim creation domain check is working correctly.");
// Assert that error is displayed on the page.
- var pageContent = await Page.TextContentAsync("body");
- Assert.That(pageContent, Does.Contain("The current chosen email address is already in use"), "Error message not displayed on page when trying to claim email address already claimed by another user.");
+ await WaitForUrlAsync("*", "The current chosen email address is already in use");
}
/// <summary>