Revise tests to account for new "Finish Setup Button" location

- Add infrastructure to find and set new button identifier
- Issue MatterHackers/MCCentral#4902
Investigate failing PulseRequiresLevelingAndLevelingWorks test
This commit is contained in:
John Lewin 2019-01-23 23:02:46 -08:00
parent 26e10eae86
commit c7d6c9b75a
6 changed files with 15 additions and 9 deletions

View file

@ -67,6 +67,7 @@ namespace MatterHackers.MatterControl
Details = "Printer Setup must be run before printing".Localize(),
FixAction = new NamedAction()
{
ID = "SetupPrinter",
Title = "Setup".Localize() + "...",
Action = () =>
{

View file

@ -83,6 +83,12 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
{
ToolTipText = action.Title
};
if (!string.IsNullOrEmpty(action.ID))
{
button.Name = action.ID;
}
button.Click += (s, e) =>
{
action.Action.Invoke();