From 0ec791da9d2ff41a60efe9c13a6ab3da81169f7e Mon Sep 17 00:00:00 2001 From: softworkz Date: Sun, 16 Nov 2025 02:59:50 +0100 Subject: [PATCH] Improve test Progress_bar_and_always_on_top_toggle --- src/ElectronNET.IntegrationTests/Tests/BrowserWindowTests.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ElectronNET.IntegrationTests/Tests/BrowserWindowTests.cs b/src/ElectronNET.IntegrationTests/Tests/BrowserWindowTests.cs index b6c8bcf..651c178 100644 --- a/src/ElectronNET.IntegrationTests/Tests/BrowserWindowTests.cs +++ b/src/ElectronNET.IntegrationTests/Tests/BrowserWindowTests.cs @@ -165,10 +165,14 @@ namespace ElectronNET.IntegrationTests.Tests { var win = this.fx.MainWindow; win.SetProgressBar(0.5); + await Task.Delay(50); win.SetProgressBar(0.8, new ProgressBarOptions { Mode = ProgressBarMode.normal }); + await Task.Delay(50); win.SetAlwaysOnTop(true); + await Task.Delay(500); (await win.IsAlwaysOnTopAsync()).Should().BeTrue(); win.SetAlwaysOnTop(false); + await Task.Delay(500); (await win.IsAlwaysOnTopAsync()).Should().BeFalse(); }