fixing tests

This commit is contained in:
LarsBrubaker 2020-05-16 08:34:06 -07:00
parent 6a8a438718
commit c66d6d44db
4 changed files with 12 additions and 10 deletions

View file

@ -287,14 +287,13 @@ namespace MatterHackers.MatterControl.Tests.Automation
testRunner.ClickByName("Yes Button");
}
// TODO: Improve this to more accurately find the print task row and click its Stop button
if (testRunner.WaitForName("Stop Task Button", .2))
{
testRunner.ClickByName("Stop Task Button");
}
testRunner.WaitForWidgetEnabled("Print Progress Dial", 15);
testRunner.WaitForWidgetEnabled("Stop Task Button");
testRunner.ClickByName("Stop Task Button");
// Wait for and dismiss the new PrintCompleted dialog
testRunner.WaitForName("Ok Button");
testRunner.WaitForName("Ok Button", 10);
testRunner.ClickByName("Ok Button");
}
@ -961,6 +960,8 @@ namespace MatterHackers.MatterControl.Tests.Automation
{
EnsurePrinterSidebarOpen(testRunner);
testRunner.WaitForWidgetEnabled("Slice Settings Tab");
testRunner.ClickByName("Slice Settings Tab");
}

View file

@ -553,6 +553,7 @@ namespace MatterControl.Tests.MatterControl
}
public string InputValue { get; }
public string ExpectedValue { get; }
}
@ -567,7 +568,7 @@ namespace MatterControl.Tests.MatterControl
{
// *************** Enable to investigate/debug/develop new/existing tests ************************
bool investigateDebugTests = false;
var perItemDelay = (investigateDebugTests) ? 1000 : 0;
var perItemDelay = investigateDebugTests ? 1000 : 0;
var testsWindow = new UIFieldTestWindow(500, 200, field, theme);
@ -580,7 +581,6 @@ namespace MatterControl.Tests.MatterControl
return Task.CompletedTask;
}, 30);
}
}
}