diff --git a/Tests/MatterControl.AutomationTests/SliceSettingsTests.cs b/Tests/MatterControl.AutomationTests/SliceSettingsTests.cs
index 6d0789eb9..39334af16 100644
--- a/Tests/MatterControl.AutomationTests/SliceSettingsTests.cs
+++ b/Tests/MatterControl.AutomationTests/SliceSettingsTests.cs
@@ -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
diff --git a/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs b/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs
index d16ac882d..e7a13331d 100644
--- a/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs
+++ b/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs
@@ -826,6 +826,20 @@ namespace MatterHackers.MatterControl.Tests.Automation
testRunner.ClickByName("Controls Tab");
}
+ ///
+ /// 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
+ ///
+ ///
+ 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