mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-07-19 07:06:26 +00:00
Improve test Progress_bar_and_always_on_top_toggle
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user