Making less calls to reload all

New function ReloadLibraryUI
Called when updating purchased and shared folder
This commit is contained in:
Lars Brubaker 2016-08-08 17:17:59 -07:00
parent 5325d7d190
commit 0f2b715935
6 changed files with 37 additions and 38 deletions

View file

@ -424,11 +424,12 @@ namespace MatterHackers.MatterControl.Tests.Automation
testRunner.Type(rowItemPath);
testRunner.Type("{Enter}");
testRunner.Wait(1);
string rowItemOne = "Row Item " + "Calibration - Box";
testRunner.ClickByName(rowItemOne);
testRunner.ClickByName(rowItemOne, 1);
string rowItemTwo = "Row Item " + "Fennec Fox";
testRunner.ClickByName(rowItemTwo);
testRunner.ClickByName(rowItemTwo, 1);
testRunner.Wait(1);

View file

@ -313,19 +313,15 @@ namespace MatterHackers.MatterControl.Tests.Automation
int meshCountAfterRemove = view3D.MeshGroups.Count();
resultsHarness.AddTestResult(meshCountAfterRemove == 5);
// TODO: undo redo have been removed until 2.0
if (false)
{
testRunner.ClickByName("3D View Undo");
System.Threading.Thread.Sleep(2000);
int meshCountAfterUndo = view3D.MeshGroups.Count();
resultsHarness.AddTestResult(meshCountAfterUndo == 6);
testRunner.ClickByName("3D View Undo");
System.Threading.Thread.Sleep(2000);
int meshCountAfterUndo = view3D.MeshGroups.Count();
resultsHarness.AddTestResult(meshCountAfterUndo == 6);
testRunner.ClickByName("3D View Redo");
System.Threading.Thread.Sleep(2000);
int meshCountAfterRedo = view3D.MeshGroups.Count();
resultsHarness.AddTestResult(meshCountAfterRedo == 5);
}
testRunner.ClickByName("3D View Redo");
System.Threading.Thread.Sleep(2000);
int meshCountAfterRedo = view3D.MeshGroups.Count();
resultsHarness.AddTestResult(meshCountAfterRedo == 5);
partPreview.CloseOnIdle();
testRunner.Wait(.1);
@ -337,7 +333,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
AutomationTesterHarness testHarness = MatterControlUtilities.RunTest(testToRun);
Assert.IsTrue(testHarness.AllTestsPassed);
Assert.IsTrue(testHarness.TestCount == 8); // make sure we ran all our tests
Assert.IsTrue(testHarness.TestCount == 10); // make sure we ran all our tests
}
[Test, RequiresSTA, RunInApplicationDomain]