Ensure actions causing ReloadAll are wrapped in WaitForReloadAll

This commit is contained in:
jlewin 2019-04-30 16:45:29 -07:00
parent 4939481a8d
commit 18a1ccfaa2

View file

@ -68,9 +68,12 @@ namespace MatterHackers.MatterControl.Tests.Automation
// reset to defaults and make sure print leveling is cleared
testRunner.SwitchToSliceSettings();
testRunner.ClickByName("Printer Overflow Menu");
testRunner.ClickByName("Reset to Defaults Menu Item");
testRunner.ClickByName("Yes Button");
testRunner.WaitForReloadAll(() =>
{
testRunner.ClickByName("Printer Overflow Menu");
testRunner.ClickByName("Reset to Defaults Menu Item");
testRunner.ClickByName("Yes Button");
});
testRunner.OpenPrintPopupMenu();