From 2ceda33d62285b4e4b23656a52dcd87b8a41c579 Mon Sep 17 00:00:00 2001 From: Greg Date: Mon, 22 Aug 2016 15:42:52 -0700 Subject: [PATCH] Fixed Downloads provider automated tests MatterHackers/MCCentral#286 Pre-pended "-" to Temporary folder created in Download provider tests. Temporary folder now shows up as the first Downloads item in list. --- .../LibraryDownloadsTest.cs | 10 +++++----- .../MatterControl/MatterControlUtilities.cs | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Tests/MatterControl.AutomationTests/LibraryDownloadsTest.cs b/Tests/MatterControl.AutomationTests/LibraryDownloadsTest.cs index 5cce2681c..051c13cfc 100644 --- a/Tests/MatterControl.AutomationTests/LibraryDownloadsTest.cs +++ b/Tests/MatterControl.AutomationTests/LibraryDownloadsTest.cs @@ -23,7 +23,7 @@ namespace MatterHackers.MatterControl.Tests.Automation //Navigate to Downloads Library Provider testRunner.ClickByName("Library Tab"); MatterControlUtilities.NavigateToFolder(testRunner, "Downloads Row Item Collection"); - MatterControlUtilities.NavigateToFolder(testRunner, "Temporary Row Item Collection"); + MatterControlUtilities.NavigateToFolder(testRunner, "-Temporary Row Item Collection"); testRunner.ClickByName("Library Add Button"); testRunner.Wait(3); @@ -80,7 +80,7 @@ namespace MatterHackers.MatterControl.Tests.Automation //Navigate to Downloads Library Provider testRunner.ClickByName("Library Tab"); MatterControlUtilities.NavigateToFolder(testRunner, "Downloads Row Item Collection"); - MatterControlUtilities.NavigateToFolder(testRunner, "Temporary Row Item Collection"); + MatterControlUtilities.NavigateToFolder(testRunner, "-Temporary Row Item Collection"); testRunner.ClickByName("Library Add Button"); testRunner.Wait(2); @@ -133,7 +133,7 @@ namespace MatterHackers.MatterControl.Tests.Automation //Navigate to Downloads Library Provider testRunner.ClickByName("Library Tab"); MatterControlUtilities.NavigateToFolder(testRunner, "Downloads Row Item Collection"); - MatterControlUtilities.NavigateToFolder(testRunner, "Temporary Row Item Collection"); + MatterControlUtilities.NavigateToFolder(testRunner, "-Temporary Row Item Collection"); testRunner.ClickByName("Library Add Button"); testRunner.Wait(2); @@ -188,7 +188,7 @@ namespace MatterHackers.MatterControl.Tests.Automation //Navigate to Downloads Library Provider testRunner.ClickByName("Library Tab"); MatterControlUtilities.NavigateToFolder(testRunner, "Downloads Row Item Collection"); - MatterControlUtilities.NavigateToFolder(testRunner, "Temporary Row Item Collection"); + MatterControlUtilities.NavigateToFolder(testRunner, "-Temporary Row Item Collection"); testRunner.ClickByName("Library Add Button"); testRunner.Wait(2); @@ -246,7 +246,7 @@ namespace MatterHackers.MatterControl.Tests.Automation //Navigate to Downloads Library Provider testRunner.ClickByName("Library Tab"); MatterControlUtilities.NavigateToFolder(testRunner, "Downloads Row Item Collection"); - MatterControlUtilities.NavigateToFolder(testRunner, "Temporary Row Item Collection"); + MatterControlUtilities.NavigateToFolder(testRunner, "-Temporary Row Item Collection"); testRunner.ClickByName("Create Folder From Library Button"); testRunner.Wait(2); testRunner.Type("New Folder"); diff --git a/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs b/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs index c87740498..b90af7f90 100644 --- a/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs +++ b/Tests/MatterControl.Tests/MatterControl/MatterControlUtilities.cs @@ -69,7 +69,7 @@ namespace MatterHackers.MatterControl.Tests.Automation public static void CreateDownloadsSubFolder() { - Directory.CreateDirectory(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads", "Temporary")); + Directory.CreateDirectory(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads", "-Temporary")); } @@ -77,7 +77,7 @@ namespace MatterHackers.MatterControl.Tests.Automation { get { - return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads", "Temporary"); + return Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), "Downloads", "-Temporary"); } }