Revise SaveAsToQueue test
- Extract SaveBedplateToFolder functionality to test helper
This commit is contained in:
parent
305565154e
commit
9dd9928e4e
3 changed files with 33 additions and 43 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue