Example #1
0
        public void SearchTicketsWithoutDestinationInput()
        {
            FlightsPage flightsPage = new FlightsPage()
                                      .EnterDepartureCity("Minsk")
                                      .EnterDepartDate("28 December, Sa")
                                      .Enter();

            Assert.AreEqual("Select destination", flightsPage.GetDestinationErrorMessage());
        }
Example #2
0
        public void SearchTicketsWithoutDestinationInput()
        {
            FlightsPage flightsPage = new FlightsPage()
                                      .EnterDepartureCity("Vilnius")
                                      .EnterDepartDate("22 December")
                                      .Enter();

            Assert.AreEqual("Select destination", flightsPage.GetDestinationErrorMessage());

            Logger.Log.Info(" Search Tickets Without Destination Input Test");
        }
Example #3
0
        public void EnterEqualDepartureAndDestinationCity()
        {
            string city = "Minsk National Airport";

            FlightsPage flightsPage = new FlightsPage()
                                      .EnterDepartureCity(city)
                                      .EnterDestinationCity(city)
                                      .EnterDepartDate("28 December, Sa")
                                      .Enter();

            Assert.AreEqual("Origin and destination cannot be the same", flightsPage.GetDestinationErrorMessage());
        }
Example #4
0
        public void EnterEqualDepartureAndDestinationCity()
        {
            string city = "Vena";

            FlightsPage flightsPage = new FlightsPage()
                                      .EnterDepartureCity(city)
                                      .EnterDestinationCity(city)
                                      .EnterDepartDate("22 December")
                                      .Enter();

            Assert.AreEqual("Origin and destination cannot be the same", flightsPage.GetDestinationErrorMessage());

            Logger.Log.Info(" Enter Equal Departure And Destination City Test");
        }