Revise PrinterRequestsResumeWorkingAsExpected test
- Test still failing due to pause dialogs not appearing - Make WaitForPrintFinished helper/extension method
This commit is contained in:
parent
f770384137
commit
39fb56453e
3 changed files with 13 additions and 9 deletions
|
|
@ -41,6 +41,7 @@ using MatterHackers.Agg.PlatformAbstract;
|
|||
using MatterHackers.Agg.UI;
|
||||
using MatterHackers.GuiAutomation;
|
||||
using MatterHackers.MatterControl.DataStorage;
|
||||
using MatterHackers.MatterControl.PrinterCommunication;
|
||||
using MatterHackers.MatterControl.SlicerConfiguration;
|
||||
using MatterHackers.PrinterEmulator;
|
||||
using Newtonsoft.Json;
|
||||
|
|
@ -378,6 +379,11 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
testRunner.ClickByName("Add to Plate MenuItem");
|
||||
}
|
||||
|
||||
public static void WaitForPrintFinished(this AutomationRunner testRunner)
|
||||
{
|
||||
testRunner.Delay(() => PrinterConnectionAndCommunication.Instance.CommunicationState == PrinterConnectionAndCommunication.CommunicationStates.FinishedPrint, 120);
|
||||
}
|
||||
|
||||
public static async Task RunTest(
|
||||
AutomationTest testMethod,
|
||||
string staticDataPathOverride = null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue