Skip to content

Commit 0ec791d

Browse files
committed
Improve test Progress_bar_and_always_on_top_toggle
1 parent 0580942 commit 0ec791d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ElectronNET.IntegrationTests/Tests/BrowserWindowTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,14 @@ public async Task Progress_bar_and_always_on_top_toggle()
165165
{
166166
var win = this.fx.MainWindow;
167167
win.SetProgressBar(0.5);
168+
await Task.Delay(50);
168169
win.SetProgressBar(0.8, new ProgressBarOptions { Mode = ProgressBarMode.normal });
170+
await Task.Delay(50);
169171
win.SetAlwaysOnTop(true);
172+
await Task.Delay(500);
170173
(await win.IsAlwaysOnTopAsync()).Should().BeTrue();
171174
win.SetAlwaysOnTop(false);
175+
await Task.Delay(500);
172176
(await win.IsAlwaysOnTopAsync()).Should().BeFalse();
173177
}
174178

0 commit comments

Comments
 (0)