public void ShouldFailOnSearchingNonExistingUser() { _projectDashboardPage.SearchEmailTextBox.Text = "*****@*****.**"; _projectDashboardPage.SearchButton.Click(); var messageBox = MessageBoxUtil.GetErrorMessageBox(MainWindow); Assert.NotNull(messageBox); Assert.IsTrue(MessageBoxUtil.GetTextContent(messageBox).Contains("not exist")); MessageBoxUtil.ClickOKButton(messageBox); }
public void ShouldFailRegistrationWithInvalidServerSideValidation() { EnterValidCredentials(); RegisterPage.EmailTextBox.Text = "Not an email"; RegisterPage.RegisterButton.Click(); var messageBox = MessageBoxUtil.GetErrorMessageBox(MainWindow); Assert.NotNull(messageBox); MessageBoxUtil.ClickOKButton(messageBox); }