chore: Attempt at stabilizing Bridge launch for e2e tests

This commit is contained in:
Gordana Zafirova
2025-10-24 14:55:07 +02:00
committed by gzafirova
parent ac3d7375f7
commit 6ab8558e17

View File

@ -148,7 +148,10 @@ namespace ProtonMailBridge.UI.Tests
string appExecutable = TestData.AppExecutable; string appExecutable = TestData.AppExecutable;
Application.Launch(appExecutable); Application.Launch(appExecutable);
Wait.UntilInputIsProcessed(TestData.FiveSecondsTimeout); Wait.UntilInputIsProcessed(TestData.FiveSecondsTimeout);
Retry.WhileException( () =>
{
App = Application.Attach("bridge-gui.exe"); App = Application.Attach("bridge-gui.exe");
}, TimeSpan.FromSeconds(60), null, true);
RefreshWindow(TestData.OneMinuteTimeout); RefreshWindow(TestData.OneMinuteTimeout);
Window.Focus(); Window.Focus();
} }