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())); }); }
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())); }); }
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())); }); }