Ignore more settings while validating oem settings changes

This commit is contained in:
LarsBrubaker 2020-08-27 09:03:35 -07:00
parent e71aacbedb
commit 87d8de607a
4 changed files with 13 additions and 6 deletions

View file

@ -81,7 +81,9 @@ namespace MatterHackers.MatterControl.Tests.Automation
// open the print menu and prove no oem message
testRunner.OpenPrintPopupMenu();
Assert.IsFalse(testRunner.NameExists("Default Settings Have Changed", 1));
var expectedWaringName = "Default Settings Have Changed Row";
Assert.IsFalse(testRunner.NameExists(expectedWaringName, 1));
// close the menu
testRunner.ClickByName("PartPreviewContent");
@ -91,8 +93,7 @@ namespace MatterHackers.MatterControl.Tests.Automation
// open menu again and check that warning is now visible
testRunner.OpenPrintPopupMenu();
testRunner.Delay(1000);
Assert.IsTrue(testRunner.NameExists("Default Settings Have Changed Row", 1));
Assert.IsTrue(testRunner.NameExists(expectedWaringName, 1));
}
return Task.CompletedTask;