From 5fa01c8a5e2dd8ec5257c7f5fd68ccdf36d94be0 Mon Sep 17 00:00:00 2001 From: John Lewin Date: Mon, 30 Jul 2018 17:02:36 -0700 Subject: [PATCH] Validate GCode/MultilineStringField persistence --- Tests/MatterControl.AutomationTests/PrintingTests.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Tests/MatterControl.AutomationTests/PrintingTests.cs b/Tests/MatterControl.AutomationTests/PrintingTests.cs index bac218d34..8ebc5e557 100644 --- a/Tests/MatterControl.AutomationTests/PrintingTests.cs +++ b/Tests/MatterControl.AutomationTests/PrintingTests.cs @@ -33,6 +33,14 @@ namespace MatterHackers.MatterControl.Tests.Automation testRunner.Type("{BACKSPACE}"); testRunner.Type("G28"); + testRunner.SelectSliceSettingsField("Printer", "start_gcode"); + + // Validate GCode fields persist values + Assert.AreEqual( + "G28", + ApplicationController.Instance.ActivePrinter.Settings.GetValue(SettingsKey.end_gcode), + "Failure persisting GCode/MultilineTextField value"); + testRunner.AddItemToBedplate(); // Shorten the delay so the test runs in a reasonable time