Fixed group test.

issue: MatterHackers/MCCentral#2451
Investigate if ValidateDoUndoOnSceneOperations failure is related to recent selection changes
This commit is contained in:
Lars Brubaker 2017-12-20 15:43:21 -08:00
parent 2ff6e1b393
commit d446681f1f
2 changed files with 9 additions and 5 deletions

View file

@ -56,12 +56,12 @@ namespace MatterHackers.MatterControl.PartPreviewWindow
{
selectedItem.Children.Modify((sChildren) =>
{
for(int i= sChildren.Count-1; i >= 0; i--)
foreach(var child in sChildren)
{
var child = sChildren[i];
sChildren.RemoveAt(i);
gChildren.Add(child);
}
sChildren.Clear();
});
});
scene.Children.Add(newGroup);

View file

@ -161,8 +161,12 @@ namespace MatterHackers.MatterControl.Tests.Automation
public static void CloseSignInAndPrinterSelect(this AutomationRunner testRunner, PrepAction preAction = PrepAction.CloseSignInAndPrinterSelect)
{
// NOTE: Tests fail to detect and close this Window when delay is ~.5
//
SystemWindow systemWindow;
testRunner.GetWidgetByName("View3DWidget", out systemWindow);
// make sure we wait for MC to be up and running
testRunner.WaitforDraw(systemWindow);
// If there is a auth pannel make sure we try and close it
// Non-MCCentral builds won't have the plugin. Reduce the wait time for these cases
if (testRunner.WaitForName("Connection Wizard Skip Sign In Button", 1))
{