diff --git a/Tests/MatterControl.AutomationTests/LocalLibraryTests.cs b/Tests/MatterControl.AutomationTests/LocalLibraryTests.cs index 06f0c3a05..5fd07d67b 100644 --- a/Tests/MatterControl.AutomationTests/LocalLibraryTests.cs +++ b/Tests/MatterControl.AutomationTests/LocalLibraryTests.cs @@ -15,7 +15,7 @@ namespace MatterHackers.MatterControl.Tests.Automation await MatterControlUtilities.RunTest((testRunner) => { testRunner.AddAndSelectPrinter(); - testRunner.AddTestAssetsToLibrary("Batman.stl"); + testRunner.AddTestAssetsToLibrary(new[] { "Batman.stl" }); return Task.CompletedTask; }); @@ -27,7 +27,7 @@ namespace MatterHackers.MatterControl.Tests.Automation await MatterControlUtilities.RunTest((testRunner) => { testRunner.AddAndSelectPrinter(); - testRunner.AddTestAssetsToLibrary("Rook.amf", "Batman.stl"); + testRunner.AddTestAssetsToLibrary(new[] { "Rook.amf", "Batman.stl" }); return Task.CompletedTask; }); @@ -39,7 +39,7 @@ namespace MatterHackers.MatterControl.Tests.Automation await MatterControlUtilities.RunTest((testRunner) => { testRunner.AddAndSelectPrinter(); - testRunner.AddTestAssetsToLibrary("Rook.amf"); + testRunner.AddTestAssetsToLibrary(new[] { "Rook.amf" }); return Task.CompletedTask; }, overrideWidth: 1024, overrideHeight: 800); @@ -128,7 +128,7 @@ namespace MatterHackers.MatterControl.Tests.Automation { testRunner.AddAndSelectPrinter(); - testRunner.AddTestAssetsToLibrary("Rook.amf"); + testRunner.AddTestAssetsToLibrary(new[] { "Rook.amf" }); testRunner.ClickByName("Row Item Rook"); @@ -188,7 +188,7 @@ namespace MatterHackers.MatterControl.Tests.Automation { testRunner.AddAndSelectPrinter(); - testRunner.AddTestAssetsToLibrary("Rook.amf"); + testRunner.AddTestAssetsToLibrary(new[] { "Rook.amf" }); // Select and remove item testRunner.ClickByName("Row Item Rook"); @@ -208,7 +208,7 @@ namespace MatterHackers.MatterControl.Tests.Automation { testRunner.AddAndSelectPrinter(); - testRunner.AddTestAssetsToLibrary("Rook.amf", "Batman.stl"); + testRunner.AddTestAssetsToLibrary(new[] { "Rook.amf", "Batman.stl" }); // Select both items testRunner.SelectListItems("Row Item Rook", "Row Item Batman"); diff --git a/Tests/MatterControl.AutomationTests/PrintQueueTests.cs b/Tests/MatterControl.AutomationTests/PrintQueueTests.cs index 59c681816..e1105e69c 100644 --- a/Tests/MatterControl.AutomationTests/PrintQueueTests.cs +++ b/Tests/MatterControl.AutomationTests/PrintQueueTests.cs @@ -167,7 +167,7 @@ namespace MatterHackers.MatterControl.Tests.Automation { testRunner.OpenEmptyPartTab(); - testRunner.AddTestAssetsToLibrary("Batman.stl"); + testRunner.AddTestAssetsToLibrary(new[] { "Batman.stl" }); var view3D = testRunner.GetWidgetByName("View3DWidget", out _) as View3DWidget; var scene = view3D.InteractionLayer.Scene; diff --git a/Tests/MatterControl.AutomationTests/SliceSettingsTests.cs b/Tests/MatterControl.AutomationTests/SliceSettingsTests.cs index 311cf3bb8..0962be7df 100644 --- a/Tests/MatterControl.AutomationTests/SliceSettingsTests.cs +++ b/Tests/MatterControl.AutomationTests/SliceSettingsTests.cs @@ -24,7 +24,7 @@ namespace MatterHackers.MatterControl.Tests.Automation testRunner.AddAndSelectPrinter("Airwolf 3D", "HD"); - testRunner.AddTestAssetsToLibrary("Rook.amf"); + testRunner.AddTestAssetsToLibrary(new[] { "Rook.amf" }); testRunner.AddItemToBedplate("", "Row Item Rook"); diff --git a/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs b/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs index 56c21f59e..18d5cbb39 100644 --- a/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs +++ b/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs @@ -1010,10 +1010,10 @@ namespace MatterHackers.MatterControl.Tests.Automation /// /// /// The test assets to add to the library - public static void AddTestAssetsToLibrary(this AutomationRunner testRunner, params string[] assetNames) + public static void AddTestAssetsToLibrary(this AutomationRunner testRunner, IEnumerable assetNames, string targetLibrary = "Local Library Row Item Collection") { // Switch to the Local Library tab - testRunner.NavigateToFolder("Local Library Row Item Collection"); + testRunner.NavigateToFolder(targetLibrary); // Assert that the requested items are *not* in the list foreach (string assetName in assetNames)