File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
src/modules/fancyzones/FancyZones.UITests Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 44
55using System ;
66using System . Collections . Generic ;
7+ using System . Threading ;
78using System . Threading . Tasks ;
89using System . Windows . Forms ;
910using FancyZonesEditor . Models ;
@@ -49,18 +50,16 @@ public DragWindowTests()
4950 [ TestInitialize ]
5051 public void TestInitialize ( )
5152 {
52- SettingsConfigHelper . ConfigureGlobalModuleSettings ( "Hosts" ) ;
53-
54- // kill all processes related to FancyZones Editor to ensure a clean state
55- Session . KillAllProcessesByName ( "PowerToys.FancyZonesEditor" ) ;
53+ Session . KillAllProcessesByName ( "PowerToys" ) ;
54+ Thread . Sleep ( 1000 ) ;
55+ ClearOpenWindows ( ) ;
5656
57+ SettingsConfigHelper . ConfigureGlobalModuleSettings ( "Hosts" ) ;
5758 AppZoneHistory . DeleteFile ( ) ;
5859 FancyZonesEditorHelper . Files . Restore ( ) ;
5960
60- // ClearOpenWindows - do this after file operations to ensure Session is ready
61- ClearOpenWindows ( ) ;
62-
6361 RestartScopeExe ( ) ;
62+ Thread . Sleep ( 2000 ) ;
6463
6564 // Set a custom layout with 1 subzones and clear app zone history
6665 SetupCustomLayouts ( ) ;
You can’t perform that action at this time.
0 commit comments