Beispiel #1
0
 public void WriteAReviewWithoutValidEmail()
 {
     TakeScreenshotWhenTestFailed(() =>
     {
         StartPage startPage           = new StartPage(Driver).GoToDropDownMenuYet();
         HelpPage helpPage             = new HelpPage(Driver).SelectItemLeaveAReview();
         FeedbackFormPage feedbackForm = new FeedbackFormPage(Driver)
                                         .InputInvalidEmailAdress(OrderCreater.WithInvalidEmail())
                                         .SendReview(OrderCreater.WithMessage());
         Assert.AreEqual("Введен неверный адрес эл. почты.", feedbackForm.textErrorOfEmail.Text);
     });
 }
Beispiel #2
0
 public void SendingFeedbackWithoutMessage()
 {
     TakeScreenshotWhenTestFailed(() =>
     {
         StartPage startPage           = new StartPage(Driver).GoToDropDownMenuYet();
         HelpPage helpPage             = new HelpPage(Driver).SelectItemLeaveAReview();
         FeedbackFormPage feedbackForm = new FeedbackFormPage(Driver)
                                         .InputEmailAdress(OrderCreater.WithEmailValid())
                                         .SendTheComment();
         Assert.AreEqual(FeedbackPageUrl, feedbackForm.GetUrlOfFeedbackPage());
     });
 }
Beispiel #3
0
 public void WriteAReviewWithoutEmail()
 {
     TakeScreenshotWhenTestFailed(() =>
     {
         StartPage startPage           = new StartPage(Driver).GoToDropDownMenuYet();
         HelpPage helpPage             = new HelpPage(Driver).SelectItemLeaveAReview();
         FeedbackFormPage feedbackForm = new FeedbackFormPage(Driver)
                                         .SendReview(OrderCreater.WithMessage())
                                         .SendTheComment();
         Assert.AreEqual("Пожалуйста, указывайте верный адрес эл. почты, чтобы мы могли на него ответить.", feedbackForm.textErrorOfEmail.Text);
     });
 }