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

            Assert.AreEqual("Select destination", flightsPage.GetDestinationErrorMessage());
        }
Exemplo n.º 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");
        }
Exemplo n.º 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());
        }
Exemplo n.º 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");
        }