Fixed the mirror test

This commit is contained in:
Lars Brubaker 2018-12-07 14:05:03 -08:00
parent 0d776e20f2
commit af9d26ae68
2 changed files with 8 additions and 2 deletions

View file

@ -45,7 +45,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
{
await MatterControlUtilities.RunTest((testRunner) =>
{
testRunner.OpenEmptyPartTab();
testRunner.OpenEmptyPartTab();
testRunner.NavigateToFolder("Local Library Row Item Collection");
testRunner.InvokeLibraryCreateFolderDialog();

View file

@ -177,8 +177,14 @@ namespace MatterHackers.MatterControl.Tests.Automation
public static void OpenEmptyPartTab(this AutomationRunner testRunner)
{
SystemWindow systemWindow;
testRunner.GetWidgetByName("Hardware Tab", out systemWindow, 10);
testRunner.WaitforDraw(systemWindow);
// Latest product starts at empty part tab
if (testRunner.NameExists("Cancel Wizard Button"))
// close the welcome message
if (testRunner.NameExists("Cancel Wizard Button", 10))
{
testRunner.ClickByName("Cancel Wizard Button");
}