Пример #1
0
        public void SendCallBackWithCorrectData()
        {
            string expectingMessage = ErrorCreater.CorrectNamePhoneEmail();

            User user = UserCreater.WithAllProperties();

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

            Log.Info(ErrorTextForCallBackWithIncorrectData);

            Assert.AreEqual(expectingMessage, errorMessage, "Data entered is correct for collback");
        }
Пример #2
0
        public void SendAskQuestionWithCorrectData()
        {
            string expectingMessage = ErrorCreater.CorrectNamePhoneEmail();

            User user = UserCreater.WithAllProperties();

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

            Log.Info(ErrorTextForDendAsqQuestionWithCorrectData);

            Assert.AreEqual(expectingMessage, errorMessage, "All data is incorrect for asking question");
        }
Пример #3
0
        public void SendWithCorrectData()
        {
            string expectingMessage = ErrorCreater.CorrectNamePhoneEmail();

            User user = UserCreater.WithAllProperties();

            string errorMessage = new PayOnlinePage()
                                  .FillNameRenterField(user)
                                  .FillNameRenterField(user)
                                  .FillEmailField(user)
                                  .FillPhoneField(user)
                                  .FillPriceField(user)
                                  .SendPayOnline()
                                  .GetErrorMessageText();

            Log.Info(ErrorTextForSendWithCorrectData);

            Assert.AreEqual(expectingMessage, errorMessage, "All data is correct for pay online");
        }
Пример #4
0
        public void SendOrderAutoWithDriver()
        {
            string expectingMessage = ErrorCreater.CorrectNamePhoneEmail();

            User user = UserCreater.WithAllProperties();

            string errorMessage = new StartPage()
                                  .ClickContactsButton()
                                  .WriteButton()
                                  .FillNameField(user)
                                  .FillPhoneField(user)
                                  .FillEmailField(user)
                                  .SendButton()
                                  .GetErrorMessageText();

            Log.Info(ErrorTextForSendOrderPositiveTest);

            Assert.AreEqual(expectingMessage, errorMessage, "Data entered correctly");
        }