Refactor wait to delay

This commit is contained in:
Lars Brubaker 2017-02-01 10:12:31 -08:00
parent fcee839476
commit 19d22ce91d
19 changed files with 220 additions and 220 deletions

View file

@ -30,20 +30,20 @@ namespace MatterHackers.MatterControl.Tests.Automation
string rowItemPath = MatterControlUtilities.GetTestItemPath("Batman.stl");
//Add STL part items to Downloads and then type paths into file dialog
testRunner.Wait(1);
testRunner.Delay(1);
testRunner.Type(MatterControlUtilities.GetTestItemPath("Batman.stl"));
testRunner.Wait(1);
testRunner.Delay(1);
testRunner.Type("{Enter}");
//Get test results
Assert.IsTrue(testRunner.WaitForName(firstItemName, 2) == true);
testRunner.ClickByName("Queue Export Button");
testRunner.Wait(2);
testRunner.Delay(2);
testRunner.WaitForName("Export Item Window", 2);
testRunner.ClickByName("Export as GCode Button", 2);
testRunner.Wait(2);
testRunner.Delay(2);
string gcodeOutputPath = MatterControlUtilities.PathToExportGcodeFolder;
@ -52,7 +52,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
string fullPathToGcodeFile = Path.Combine(gcodeOutputPath, "Batman");
testRunner.Type(fullPathToGcodeFile);
testRunner.Type("{Enter}");
testRunner.Wait(2);
testRunner.Delay(2);
Console.WriteLine(gcodeOutputPath);