public void ManageIncorrectBooking()
        {
            UserCreator userCreator       = new UserCreator();
            HomePage    manageBookingPage = new HomePage(Driver)
                                            .ManageBookingClick()
                                            .InputLastNameAndBookingReference(userCreator.LastNameAndBookingReferenceProperties())
                                            .CheckInButtonClick();

            Assert.AreEqual(manageBookingPage.GetUrl(), ManageBookingUrl);
        }
        public void LogInWithIncorrectInformation()
        {
            UserCreator userCreator = new UserCreator();
            HomePage    home        = new HomePage(Driver);
            LogInPage   logInPage   = new LogInPage(Driver);

            logInPage.RegistrUser(userCreator.LastNameAndBookingReferenceProperties());

            Assert.AreEqual(Driver.FindElement(By.ClassName("error-message")).Text, "Формат Адреса Электронной Почты недопустим", "Not found correct warning text");
            Logger.Log.Debug("LogInWithIncorrectInformation");
        }
Esempio n. 3
0
        public void SearchByEnteringTheWrongBookingReferenceTest()
        {
            UserCreator userCreator    = new UserCreator();
            string      PageDialogText = new HomePage(Driver)
                                         .CookieAcceptClick()
                                         .GoToMyBooking()
                                         .InputLastNameAndBookingReference(userCreator.LastNameAndBookingReferenceProperties())
                                         .RetrieveButtonOnMyBookingsClick()
                                         .GetPageDialogText();

            Assert.AreEqual(PageDialogText,
                            ErrorTextForSearchByEnteringTheWrongBookingReference);
        }
Esempio n. 4
0
        public void SearchByEnteringTheWrongInformationInCheckIn()
        {
            UserCreator  userCreator = new UserCreator();
            RouteCreator route       = new RouteCreator();
            HomePage     home        = new HomePage(Driver)
                                       .CookieAcceptClick()
                                       .GoToCheckIn()
                                       .InputLastNameBookingReferenceAndOriginSurrogateCheckIn(userCreator.LastNameAndBookingReferenceProperties(), route.WithAllProperties())
                                       .CheckInButtonClick();

            Assert.IsTrue(home.ErrorFormIsDisplayed());
        }