Cleaning and improving editing properties.

This commit is contained in:
Lars Brubaker 2018-01-26 17:53:54 -08:00
parent 7f036af2b3
commit 2346ed359e
13 changed files with 151 additions and 153 deletions

View file

@ -147,6 +147,16 @@ namespace MatterHackers.MatterControl.Tests.Automation
CloseSignInAndPrinterSelect,
};
public static void ExpandEditTool(this AutomationRunner testRunner, string expandCheckboxButtonName)
{
var mirrorPanel = testRunner.GetWidgetByName(expandCheckboxButtonName, out _);
var checkBox = mirrorPanel.Children<ExpandCheckboxButton>().FirstOrDefault();
if (checkBox?.Checked != true)
{
testRunner.ClickByName(expandCheckboxButtonName);
}
}
public static void Select3DPart(this AutomationRunner testRunner, string partNameToSelect)
{
if (testRunner.NameExists("3D View Edit", .2))