improving re-slice test

This commit is contained in:
Lars Brubaker 2018-10-19 13:29:57 -07:00
parent 4a4ce7d1be
commit effda8c524

View file

@ -100,7 +100,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
testRunner.StartPrint();
// Wait for pause
testRunner.WaitForName("No Button", 40);// the yes button is 'Resume'
testRunner.WaitForName("No Button", 80);// the yes button is 'Resume'
testRunner.ClickByName("No Button");
// Delete the cube
@ -113,20 +113,21 @@ namespace MatterHackers.MatterControl.Tests.Automation
Assert.AreEqual(0, scene.Children.Count);
// Add a cylinder
testRunner.NavigateToFolder("Print Queue Row Item Collection");
testRunner.ClickByName("Row Item cylinder_5x20");
testRunner.ClickByName("Print Library Overflow Menu");
testRunner.ClickByName("Add to Bed Menu Item");
// re-slice the part
testRunner.ClickByName("Re-Slice Button");
testRunner.WaitForName("Yes Button", 20); // The change to new g-code
testRunner.WaitForName("Yes Button", 80); // The change to new g-code
testRunner.ClickByName("Yes Button");
// and resume the print
testRunner.ClickByName("Resume Task Button");
// Wait for next pause
testRunner.WaitForName("No Button", 20);// the yes button is 'Resume'
testRunner.WaitForName("No Button", 80);// the yes button is 'Resume'
testRunner.ClickByName("No Button");
// Switch back to the cube
@ -138,13 +139,14 @@ namespace MatterHackers.MatterControl.Tests.Automation
Assert.AreEqual(0, scene.Children.Count);
// add the cube
testRunner.NavigateToFolder("Print Queue Row Item Collection");
testRunner.ClickByName("Row Item cube_20x20x20");
testRunner.ClickByName("Print Library Overflow Menu");
testRunner.ClickByName("Add to Bed Menu Item");
// re-slice the part
testRunner.ClickByName("Re-Slice Button");
testRunner.WaitForName("Yes Button", 20); // The change to new g-code
testRunner.WaitForName("Yes Button", 80); // The change to new g-code
testRunner.ClickByName("Yes Button");
// and resume the print
@ -158,7 +160,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
}
return Task.CompletedTask;
}, maxTimeToRun: 190, queueItemFolderToAdd: QueueTemplate.ReSliceParts);
}, maxTimeToRun: 290, queueItemFolderToAdd: QueueTemplate.ReSliceParts);
}
}
}