From 6ab8558e17297f5631dce6539cf3861d23f2db0e Mon Sep 17 00:00:00 2001 From: Gordana Zafirova Date: Fri, 24 Oct 2025 14:55:07 +0200 Subject: [PATCH] chore: Attempt at stabilizing Bridge launch for e2e tests --- tests/e2e/ui_tests/windows_os/TestSession.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/e2e/ui_tests/windows_os/TestSession.cs b/tests/e2e/ui_tests/windows_os/TestSession.cs index fd0cb59a..beb04cbb 100644 --- a/tests/e2e/ui_tests/windows_os/TestSession.cs +++ b/tests/e2e/ui_tests/windows_os/TestSession.cs @@ -148,7 +148,10 @@ namespace ProtonMailBridge.UI.Tests string appExecutable = TestData.AppExecutable; Application.Launch(appExecutable); Wait.UntilInputIsProcessed(TestData.FiveSecondsTimeout); - App = Application.Attach("bridge-gui.exe"); + Retry.WhileException( () => + { + App = Application.Attach("bridge-gui.exe"); + }, TimeSpan.FromSeconds(60), null, true); RefreshWindow(TestData.OneMinuteTimeout); Window.Focus(); }