Extract default file plating helper to extension method

This commit is contained in:
John Lewin 2017-06-02 19:40:10 -07:00
parent 563b371395
commit ccd83ba673
2 changed files with 11 additions and 6 deletions

View file

@ -368,6 +368,16 @@ namespace MatterHackers.MatterControl.Tests.Automation
testRunner.Delay(.5);
}
public static void AddDefaultFileToBedPlate(this AutomationRunner testRunner, string containerName = "Calibration Parts Row Item Collection", string partName = "Row Item Calibration - Box.stl")
{
testRunner.ClickByName("Library Tab");
testRunner.NavigateToFolder(containerName);
testRunner.ClickByName(partName, 1);
testRunner.ClickByName("Print Library Overflow Menu", 1);
testRunner.ClickByName("Add to Plate MenuItem");
}
public static async Task RunTest(
AutomationTest testMethod,
string staticDataPathOverride = null,