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.
This commit is contained in:
Greg 2016-08-22 15:42:52 -07:00
parent 93d5f8d2ed
commit 2ceda33d62
2 changed files with 7 additions and 7 deletions

View file

@ -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");

View file

@ -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");
}
}