creating test for export when not connected from print menu
issue: MatterHackers/MCCentral#6326 Write test for export button on print menu
This commit is contained in:
parent
61b38ff70c
commit
4e278608a9
6 changed files with 14 additions and 3 deletions
|
|
@ -58,6 +58,17 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
|
||||
Assert.IsTrue(File.Exists(fullPathToGcodeFile + ".gcode"), "Exported file not found");
|
||||
|
||||
// add an item to the bed
|
||||
fullPathToGcodeFile = Path.Combine(gcodeOutputPath, "Cube");
|
||||
testRunner.AddItemToBedplate()
|
||||
.ClickByName("PrintPopupMenu")
|
||||
.ClickByName("Export GCode Button")
|
||||
.Type(fullPathToGcodeFile)
|
||||
.Type("{Enter}");
|
||||
|
||||
testRunner.WaitFor(() => File.Exists(fullPathToGcodeFile + ".gcode"), 10);
|
||||
Assert.IsTrue(File.Exists(fullPathToGcodeFile + ".gcode"), "Exported file not found");
|
||||
|
||||
return Task.FromResult(0);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1060,7 +1060,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
|
|||
.OpenPrintPopupMenu();
|
||||
}
|
||||
|
||||
testRunner.ClickByName("Export Gcode Button");
|
||||
testRunner.ClickByName("Export GCode Button");
|
||||
|
||||
// wait for the export to finish
|
||||
throw new NotImplementedException();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue