Beispiel #1
0
        public void EnterTheDateOfBirthOfTheChildForTheAdult()
        {
            Logger.Log.Info("Start EnterTheDateOfBirthOfTheChildForTheAdult test.");
            PassengersAndServicesPage mainPage = new MainPage(DriverSingleton.GetDriver())
                                                 .OpenPage()
                                                 .FillFieldsSearch(CreatingSearch.WithAllProperties())
                                                 .ClickSearchButton()
                                                 .FillChoiceOfFlights()
                                                 .FillDateOfBirthAdultField(CreatingPassanger.OnlyDateofBirthChild());

            Assert.AreEqual("Должна быть от 16.01.1900 до 16.01.2008.", mainPage.GetTextErrorDateOfBirth());
        }
Beispiel #2
0
        public void BookingATicketWithoutPhoneNumber()
        {
            Logger.Log.Info("Start BookingATicketWithoutPhoneNumber test.");
            PassengersAndServicesPage mainPage = new MainPage(DriverSingleton.GetDriver())
                                                 .OpenPage()
                                                 .FillFieldsSearch(CreatingSearch.WithAllProperties())
                                                 .ClickSearchButton()
                                                 .FillChoiceOfFlights()
                                                 .FillInformationAboutPassanger(CreatingPassanger.WithoutPhoneNumber());

            Assert.AreEqual("Обязательно для заполнения.", mainPage.GetTextErrorPhoneNumber());
        }
Beispiel #3
0
        public void CheckingTheCorrectnessOfTheInputData()
        {
            Logger.Log.Info("Start CheckingTheCorrectnessOfTheInputData test.");
            PassengersAndServicesPage mainPage = new MainPage(DriverSingleton.GetDriver())
                                                 .OpenPage()
                                                 .FillFieldsSearch(CreatingSearch.WithAllProperties())
                                                 .ClickSearchButton()
                                                 .FillChoiceOfFlights()
                                                 .FillInformationAboutPassanger(CreatingPassanger.WithAllProperties())
                                                 .ClickButtonNextToFinishTab();
            CheckFieldsPage checkFieldsPage = new CheckFieldsPage(DriverSingleton.GetDriver());

            Assert.IsTrue(checkFieldsPage.CompareDisplayedDataWithInputData(CreatingPassanger.WithAllProperties()));
        }