public void SearchTicketsWithoutDestinationInput() { FlightsPage flightsPage = new FlightsPage() .EnterDepartureCity("Minsk") .EnterDepartDate("28 December, Sa") .Enter(); Assert.AreEqual("Select destination", flightsPage.GetDestinationErrorMessage()); }
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"); }
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()); }
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"); }