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:
parent
26e10eae86
commit
c7d6c9b75a
6 changed files with 15 additions and 9 deletions
|
|
@ -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 = () =>
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue