Revise SaveAsToQueue test

- Extract SaveBedplateToFolder functionality to test helper
This commit is contained in:
John Lewin 2017-06-06 18:19:02 -07:00
parent 305565154e
commit 9dd9928e4e
3 changed files with 33 additions and 43 deletions

View file

@ -404,6 +404,23 @@ namespace MatterHackers.MatterControl.Tests.Automation
testRunner.Delay(1);
}
public static void SaveBedplateToFolder(this AutomationRunner testRunner, string newFileName, string folderName)
{
testRunner.ClickByName("Save As Menu");
testRunner.ClickByName("Save As Menu Item");
testRunner.Delay(1);
testRunner.Type(newFileName);
testRunner.NavigateToFolder(folderName);
testRunner.ClickByName("Save As Save Button");
// Give the SaveAs window time to close before returning to the caller
testRunner.Delay(2);
}
public static void AddSelectedItemToBedplate(this AutomationRunner testRunner)
{
testRunner.ClickByName("Print Library Overflow Menu");