Changed queue to be a file library in appdata

fixed queue test
This commit is contained in:
Lars Brubaker 2022-02-17 13:25:43 -08:00
parent 09edb55ba4
commit 9f7aa3bacb
8 changed files with 45 additions and 33 deletions

View file

@ -17,7 +17,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
testRunner.WaitForFirstDraw()
.AddAndSelectPrinter("Airwolf 3D", "HD")
//Navigate to Downloads Library Provider
.NavigateToFolder("Print Queue Row Item Collection")
.NavigateToFolder("Queue Row Item Collection")
.InvokeLibraryAddDialog();
//Get parts to add
@ -100,7 +100,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
var printer = testRunner.FirstPrinter();
//Navigate to Downloads Library Provider
testRunner.NavigateToFolder("Print Queue Row Item Collection");
testRunner.NavigateToFolder("Queue Row Item Collection");
testRunner.InvokeLibraryAddDialog();
//Get parts to add

View file

@ -31,7 +31,6 @@ using System.IO;
using System.Threading;
using System.Threading.Tasks;
using MatterHackers.Agg.UI;
using MatterHackers.MatterControl.PrintQueue;
using NUnit.Framework;
namespace MatterHackers.MatterControl.Tests.Automation
@ -51,7 +50,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
bool exportWindowExists1 = testRunner.WaitForName("Export Item Window", 0);
Assert.IsTrue(exportWindowExists1 == false, "Export window does not exist");
testRunner.NavigateToFolder("Print Queue Row Item Collection");
testRunner.NavigateToFolder("Queue Row Item Collection");
testRunner.ClickByName("Queue Export Button");
SystemWindow containingWindow;
GuiWidget exportWindow = testRunner.GetWidgetByName("Export Item Window", out containingWindow, 5);

View file

@ -278,12 +278,11 @@ namespace MatterHackers.MatterControl.Tests.Automation
int expectedCount = QueueData.Instance.ItemCount + 1;
testRunner.SaveBedplateToFolder("Test PartA", "Print Queue Row Item Collection")
testRunner.SaveBedplateToFolder("Test PartA.mcx", "Queue Row Item Collection")
.NavigateToLibraryHome()
.NavigateToFolder("Print Queue Row Item Collection");
.NavigateToFolder("Queue Row Item Collection");
testRunner.Delay(200);
Assert.IsTrue(testRunner.WaitForName("Row Item Test PartA"), "The part we added should be in the library");
Assert.IsTrue(testRunner.WaitForName("Row Item Test PartA.mcx"), "The part we added should be in the library");
Assert.AreEqual(expectedCount, QueueData.Instance.ItemCount, "Queue count should increase by one after Save operation");
return Task.CompletedTask;

View file

@ -114,7 +114,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
testRunner.AddAndSelectPrinter();
testRunner.NavigateToFolder("Print Queue Row Item Collection");
testRunner.NavigateToFolder("Queue Row Item Collection");
// Select both items
testRunner.SelectListItems("Row Item 2013-01-25_Mouthpiece_v2.stl");
@ -141,7 +141,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
testRunner.AddAndSelectPrinter();
testRunner.NavigateToFolder("Print Queue Row Item Collection");
testRunner.NavigateToFolder("Queue Row Item Collection");
// Select both items
testRunner.SelectListItems("Row Item Batman.stl", "Row Item 2013-01-25_Mouthpiece_v2.stl");

View file

@ -86,7 +86,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
};
// Add a cube to the bed
testRunner.NavigateToFolder("Print Queue Row Item Collection");
testRunner.NavigateToFolder("Queue Row Item Collection");
testRunner.ClickByName("Row Item cube_20x20x20.stl");
testRunner.ClickByName("Print Library Overflow Menu");
testRunner.ClickByName("Add to Bed Menu Item");
@ -110,7 +110,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
Assert.AreEqual(0, scene.Children.Count);
// Add a cylinder
testRunner.NavigateToFolder("Print Queue Row Item Collection");
testRunner.NavigateToFolder("Queue Row Item Collection");
testRunner.ClickByName("Row Item cylinder_5x20.stl");
testRunner.ClickByName("Print Library Overflow Menu");
testRunner.ClickByName("Add to Bed Menu Item");
@ -137,7 +137,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
Assert.AreEqual(0, scene.Children.Count);
// add the cube
testRunner.NavigateToFolder("Print Queue Row Item Collection");
testRunner.NavigateToFolder("Queue Row Item Collection");
testRunner.ClickByName("Row Item cube_20x20x20.stl");
testRunner.ClickByName("Print Library Overflow Menu");
testRunner.ClickByName("Add to Bed Menu Item");

View file

@ -317,6 +317,9 @@ namespace MatterHackers.MatterControl.Tests.Automation
testRunner.ClickByName("Start New Design");
}
// and close the product tour offer
testRunner.ClickByName("Cancel Wizard Button");
if (removeDefaultPhil)
{
testRunner.VerifyAndRemovePhil();
@ -327,7 +330,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
public static void ChangeToQueueContainer(this AutomationRunner testRunner)
{
testRunner.NavigateToFolder("Print Queue Row Item Collection");
testRunner.NavigateToFolder("Queue Row Item Collection");
}
public class PrintEmulatorProcess : Process
@ -721,7 +724,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
break;
case "Cloud Library Row Item Collection":
case "Print Queue Row Item Collection":
case "Queue Row Item Collection":
case "Local Library Row Item Collection":
break;
}