Ejemplo n.º 1
0
        public void EnterWrongCardNumberAndPassword()
        {
            Logger.Log.Info("Start \"DepartureCityEqualsArrivalCity\" test");
            FlightsSchedulePage flightsSchedulePage = new MainPage(Driver)
                                                      .GoToFlightsSchedulePage()
                                                      .EnterCode("100000" + RandomNumbers.FlightNumber())
                                                      .EnterPassword("123456")
                                                      .ClickEnterButton();

            Assert.AreEqual("Невірний Номер картки або Пароль", flightsSchedulePage.enterErrorMsg.Text);
        }
Ejemplo n.º 2
0
 public void EnterWrongFlightToSubscriptionForm()
 {
     SaveScreenshotOnTestFailure(() =>
     {
         OnlineBoardPage onlineBoardPage = new MainPage(Driver)
                                           .GoToOnlineBoardPage()
                                           .ClickFlightCheckBox()
                                           .InputFlightNumber(RandomNumbers.FlightNumber())
                                           .ClickSearchButton();
         Assert.AreEqual("Данi недоступнi", onlineBoardPage.flightMsg.Text);
     });
 }
Ejemplo n.º 3
0
 public void EnterWrongFlight()
 {
     TakeScreenshotWhenTestFailed(() =>
     {
         Logger.Log.Info("Start \"EnterWrongFlight\" test");
         OnlineBoardPage onlineBoardPage = new MainPage(Driver)
                                           .GoToOnlineBoardPage()
                                           .ClickFlightCheckBox()
                                           .InputFlightNumber(RandomNumbers.FlightNumber())
                                           .ClickSearchButton();
         Assert.AreEqual("Данi недоступнi", onlineBoardPage.flightMsg.Text);
     });
 }