Name the drop list on hot end

This commit is contained in:
Lars Brubaker 2017-09-21 09:12:33 -07:00
parent 3bec0dc2f7
commit f52ae953ab
3 changed files with 6 additions and 5 deletions

View file

@ -297,6 +297,8 @@ namespace MatterHackers.MatterControl.ActionBar
Width = 150
};
presetsSelector.DropDownList.Name = "Hotend Preset Selector";
presetsSelector.DropDownList.SelectionChanged += (s, e) =>
{
// delay this for an update so the slice setting can get updated first

@ -1 +1 @@
Subproject commit 219c8effc5c1621e9501ae09a86f799804578aa0
Subproject commit 3b4c29aed81f9013e3e901fba5c76127f1c5305d

View file

@ -195,13 +195,12 @@ namespace MatterHackers.MatterControl.Tests.Automation
Assert.AreEqual(240, (int)tempWidget.Value);
// change material
var dropDownLists = testRunner.GetWidgetsByName("Material DropDown List");
Assert.AreEqual(2, dropDownLists.Count, "There are two. The slice settings and the pop out.");
var dropDownLists = testRunner.GetWidgetsByName("Hotend Preset Selector");
Assert.AreEqual(1, dropDownLists.Count, "There is one. The slice settings and the pop out.");
DropDownList materialSelector = dropDownLists[0].widget as DropDownList;
Assert.AreEqual("", materialSelector.SelectedValue);
// BUG: the offest should not be required
testRunner.ClickByName("Material DropDown List", offset: new Point2D(-30, -25));
testRunner.ClickByName("Hotend Preset Selector");
testRunner.ClickByName("HIPS Menu");
// check the extruder count