Exemplo n.º 1
0
        public void InputInvalidReservationCodeWhenViewingReservationStatus()
        {
            StartPage startPage = new StartPage(webDriver)
                                  .GoToTabReservation(webDriver);
            ReservationPage reservationPage = new ReservationPage(webDriver)
                                              .FillInReservationCodeAndPassengerName("123456", "SHKATULO");
            ReservationSearchResultsPage reservationSearchResultsPage = new ReservationSearchResultsPage(webDriver);

            Assert.AreEqual("Бронирование не найдено", reservationSearchResultsPage.errorMessage.Text);
        }
Exemplo n.º 2
0
        public void TrainpalCancellationOfOrderOfConfirmation()
        {
            MainPage mainPage = new MainPage(Browser).AuthorizationButton();

            AuthorizationPage authorizationPage = new AuthorizationPage(Browser);

            authorizationPage
            .FillLogin("*****@*****.**" + Keys.Enter)
            .FillPass("qwerty123" + Keys.Enter);

            mainPage.EntranceProfile();

            PersonalAccountPage personalAccountPage = new PersonalAccountPage(Browser).SearchReservationPage();

            ReservationPage reservationPage = new ReservationPage(Browser).ReservationManipulation();

            ReservationСancellationPage reservationСancellationPage = new ReservationСancellationPage(Browser).CancelReservations();

            Assert.True(reservationСancellationPage.СonfirmationСancellation.Enabled);
        }