From 1b2a6029bb32d4a7102775923b638683ef33eccd Mon Sep 17 00:00:00 2001 From: Leendert de Borst Date: Fri, 30 Aug 2024 17:47:14 +0200 Subject: [PATCH] Update tests (#80) --- .../AliasVault.E2ETests/Tests/Client/TwoFactorAuthTests.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tests/AliasVault.E2ETests/Tests/Client/TwoFactorAuthTests.cs b/src/Tests/AliasVault.E2ETests/Tests/Client/TwoFactorAuthTests.cs index a66246f06..4c5b261f3 100644 --- a/src/Tests/AliasVault.E2ETests/Tests/Client/TwoFactorAuthTests.cs +++ b/src/Tests/AliasVault.E2ETests/Tests/Client/TwoFactorAuthTests.cs @@ -26,7 +26,7 @@ public class TwoFactorAuthTests : ClientPlaywrightTest // Setup two-factor auth. await NavigateUsingBlazorRouter("settings/security"); - await WaitForUrlAsync("settings/security", "Two-factor Authentication"); + await WaitForUrlAsync("settings/security", "Two-factor authentication"); // Press the enable button with text "Enable Two-Factor Authentication" var enableButton = Page.Locator("button:has-text('Enable Two-Factor Authentication')"); @@ -195,7 +195,7 @@ public class TwoFactorAuthTests : ClientPlaywrightTest { // Ensure that two factor auth is not enabled (in case the test is run after the previous test). await NavigateUsingBlazorRouter("settings/security"); - await WaitForUrlAsync("settings/security", "Two-factor Authentication"); + await WaitForUrlAsync("settings/security", "Two factor authentication is currently"); // Check if two factor auth is enabled. var enableButton = Page.Locator("button:has-text('Enable Two-Factor Authentication')");