Beispiel #1
0
        public void GetTicketsWithOutDepartDateTest()
        {
            TestWrapper(() =>
            {
                SearchRequestModel requestModel =
                    SearchRequestCreator.CreateSearchRequestModel();
                var searchResultPage = new MainPage(_webDriver, LoggerConfiguration.Log)
                                       .OpenPage()
                                       .WriteIntoFromField(requestModel.From)
                                       .WriteIntoDestinationField(requestModel.To)
                                       .OpenDepartCalendar().SelectDepartDate(1)
                                       .OpenReturnCalendar().CancelDepartDate()
                                       .OpenPassengersControl().SelectBusinessClassTicketType().ApplyPassengers()
                                       .ClickToSearchButton();

                Assert.IsTrue(searchResultPage.AllTicketsWithoutDepartPart());
            }, nameof(GetTicketsWithOutDepartDateTest));
        }