Validate GCode/MultilineStringField persistence

This commit is contained in:
John Lewin 2018-07-30 17:02:36 -07:00
parent d1f1b12ec9
commit 5fa01c8a5e

View file

@ -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