Fixing more tests

issue: MatterHackers/MCCentral#5398
complete print turns off heat test needs to dismiss 'print complete' dialog
This commit is contained in:
Lars Brubaker 2019-04-29 16:43:59 -07:00
parent fa9d184296
commit b38461a709
2 changed files with 3 additions and 1 deletions

View file

@ -679,6 +679,8 @@ namespace MatterHackers.MatterControl.Tests.Automation
public static void WaitForPrintFinished(this AutomationRunner testRunner, PrinterConfig printer, int maxSeconds = 500)
{
testRunner.WaitFor(() => printer.Connection.CommunicationState == CommunicationStates.FinishedPrint, maxSeconds);
// click the ok button on the print complete dialog
testRunner.ClickByName("Ok Button");
}
/// <summary>