Add support for toggling Sync-to-print after recent menu item removal
- Issue MatterHackers/MCCentral#2914 Investigate CancelWorksAsExpected failure
This commit is contained in:
parent
8eee29fd32
commit
51dcf0faef
2 changed files with 21 additions and 6 deletions
|
|
@ -58,8 +58,9 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
|
||||
testRunner.AddItemToBedplate();
|
||||
|
||||
testRunner.OpenGCode3DOverflowMenu();
|
||||
testRunner.ClickByName("Sync To Print Menu Item");
|
||||
// Toggle Sync-to-print
|
||||
testRunner.SwitchToGCodeTab();
|
||||
testRunner.ClickByName("Sync To Print Toggle");
|
||||
|
||||
testRunner.StartPrint();
|
||||
|
||||
|
|
@ -94,9 +95,9 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
|
||||
testRunner.AddItemToBedplate();
|
||||
|
||||
// Turn on Sync-to-print
|
||||
testRunner.OpenGCode3DOverflowMenu();
|
||||
testRunner.ClickByName("Sync To Print Menu Item");
|
||||
// Toggle Sync-to-print
|
||||
testRunner.SwitchToGCodeTab();
|
||||
testRunner.ClickByName("Sync To Print Toggle");
|
||||
|
||||
testRunner.StartPrint();
|
||||
|
||||
|
|
@ -123,7 +124,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
private static void WaitForLayerAndResume(AutomationRunner testRunner, int indexToWaitFor)
|
||||
{
|
||||
testRunner.WaitForName("No Button", 30);
|
||||
|
||||
|
||||
var printer = ApplicationController.Instance.ActivePrinter;
|
||||
|
||||
// Wait for layer
|
||||
|
|
|
|||
|
|
@ -826,6 +826,20 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
testRunner.ClickByName("Controls Tab");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Switch to Printer -> GCode Tab - NOTE: as a short term hack this helper as adds content to the bed and slices to ensure GCode view options appear as expected
|
||||
/// </summary>
|
||||
/// <param name="testRunner"></param>
|
||||
public static void SwitchToGCodeTab(this AutomationRunner testRunner)
|
||||
{
|
||||
testRunner.ClickByName("Layers3D Button");
|
||||
|
||||
// TODO: Remove workaround needed to force GCode options to appear {{
|
||||
testRunner.AddItemToBedplate();
|
||||
testRunner.ClickByName("Generate Gcode Button");
|
||||
// TODO: Remove workaround needed to force GCode options to appear }}
|
||||
}
|
||||
|
||||
private static void EnsurePrinterSidebarOpen(AutomationRunner testRunner)
|
||||
{
|
||||
// If the sidebar exists, we need to expand and pin it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue