Esempio n. 1
0
        public void SendEMailIncorrectEMailAddr()
        {
            string expectingMessage = ErrorCreater.FormWithInvalidEMail();

            User user = UserCreater.UserWithIncorrectEmail();

            string errorMessage = new StartPage()
                                  .ClickCallBackButton()
                                  .FillIPhoneField(user)
                                  .FillINameField(user)
                                  .SendCall()
                                  .GetMessageText();

            Logger.Log.Info(ErrorTextForSendIncorrectEmail);

            Assert.AreEqual(expectingMessage, errorMessage, "Email entered incorrectly for callback");
        }
Esempio n. 2
0
        public void SendAskQuestionWithInvalidEmail()
        {
            string expectingMessage = ErrorCreater.FormWithInvalidEMail();

            User user = UserCreater.UserWithIncorrectEmail();

            string errorMessage = new StartPage()
                                  .ClickAskQuestionButtonToNextPage()
                                  .AskQuestionButton()
                                  .FillNameField(user)
                                  .FillPhoneField(user)
                                  .Submit()
                                  .GetErrorMessageText();

            Log.Info(ErrorTextForSendAsqQuestionWithInvalidData);

            Assert.AreEqual(expectingMessage, errorMessage, "Email is incorrect for asking question");
        }