added assert messages

This commit is contained in:
seraphima
2023-10-27 15:43:52 +02:00
parent 48c448f1c1
commit 66ed4dd07b
2 changed files with 4 additions and 4 deletions

View File

@@ -38,14 +38,14 @@ namespace Microsoft.FancyZonesEditor.UnitTests.Utils
testContext.WriteLine(ex.Message);
}
Assert.IsNotNull(Session);
Assert.IsNotNull(Session, "Session not initialized");
// Set implicit timeout to 1.5 seconds to make element search to retry every 500 ms for at most three times
Session.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(1.5);
// Find main editor window
MainEditorWindow = Session.FindElementByAccessibilityId("MainWindow1");
Assert.IsNotNull(MainEditorWindow);
Assert.IsNotNull(MainEditorWindow, "Main editor window not found");
}
public void Close(TestContext testContext)