示例#1
0
 public void SearchWithEmptyBookingNumber()
 {
     Driver.Manage().Window.Maximize();
     TakeScreenshotWhenTestFailed(() =>
     {
         FindBookingPage booking = new FindBookingPage(Driver);
         booking.GoToPage();
         logger.Log("Test- Search with empty booking number , time: ");
         Assert.AreEqual("Introduce tu número de confirmación", booking.FindBookingWithEmptyBookingNumber(InAccessibleBookingCreator.WithWronBooking()));
     });
 }
示例#2
0
 public void SearchBookingWithEmptySurname()
 {
     Driver.Manage().Window.Maximize();
     TakeScreenshotWhenTestFailed(() =>
     {
         FindBookingPage booking = new FindBookingPage(Driver);
         booking.GoToPage();
         logger.Log("Test- Search with empty surname, time: ");
         Assert.AreEqual("Introduce tus apellidos", booking.FindBookingWithEmptySurname(InAccessibleBookingCreator.WithWronBooking()));
     });
 }
示例#3
0
 public void SearchBookingWithWrongSurnameRiseError()
 {
     Driver.Manage().Window.Maximize();
     TakeScreenshotWhenTestFailed(() =>
     {
         FindBookingPage booking = new FindBookingPage(Driver);
         booking.GoToPage();
         logger.Log("Test- Search with wrong surname(Rise error to take screen), time: ");
         Assert.AreEqual("Introduce tu número de confirmació", booking.FindBookingWithWrongSurname(InAccessibleBookingCreator.WithWronBooking()));
     });
 }