Пример #1
0
        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);
        }
Пример #2
0
        public void ShouldFailRegistrationWithInvalidServerSideValidation()
        {
            EnterValidCredentials();

            RegisterPage.EmailTextBox.Text = "Not an email";
            RegisterPage.RegisterButton.Click();

            var messageBox = MessageBoxUtil.GetErrorMessageBox(MainWindow);

            Assert.NotNull(messageBox);

            MessageBoxUtil.ClickOKButton(messageBox);
        }