public void ResaveValuesInBuyerDataWithoutChanges()
 {
     Logger.Log.Info("Start ResaveValuesInBuyerDataWithoutChanges test.");
     StartPage startPage = new StartPage(DriverInstance.GetInstance())
                           .OpenPage()
                           .ClickSignInAccountButton()
                           .FillInLoginAndPassword(Service.Service.WithUserPropertiesForSignIn())
                           .ClickMyTicket();
     MyTicketsPage myTicketsPage = new MyTicketsPage(DriverInstance.GetInstance())
                                   .ClickToResaveBuyerData();
     //Assert.AreEqual(BASE_MESSAGE, myTicketsPage.GetErrorMessageAlertAboutResave());
 }
 public void ChangePassword()
 {
     Logger.Log.Info("Start ChangePassword test.");
     StartPage startPage = new StartPage(DriverInstance.GetInstance())
                           .OpenPage()
                           .ClickSignInAccountButton()
                           .FillInLoginAndPassword(Service.Service.WithUserPropertiesForSignIn())
                           .ClickMyTicket();
     MyTicketsPage myTicketsPage = new MyTicketsPage(DriverInstance.GetInstance())
                                   .ChangePassword(Service.Service.WithUserPropertiesRepeatNewPassword());
     //Assert.AreEqual(BASE_MESSAGE, myTicketsPage.GetMessageAlertAboutPassword());
 }
        public void AddNewPassengerWithoutName()
        {
            Logger.Log.Info("Start AddNewPassengerWithoutName test.");
            StartPage startPage = new StartPage(DriverInstance.GetInstance())
                                  .OpenPage()
                                  .ClickSignInAccountButton()
                                  .FillInLoginAndPassword(Service.Service.WithUserPropertiesForSignIn())
                                  .ClickMyTicket();
            MyTicketsPage myTicketsPage = new MyTicketsPage(DriverInstance.GetInstance())
                                          .ClickPassengerData()
                                          .FillAllValuesInLabels(Service.Service.WithPassengerDataPropertiesWithoutName());

            Assert.AreEqual(REQUIRED_LABEL_TO_FILL, myTicketsPage.GetErrorMessageWithoutName());
        }
        public void ChangePasswordWithoutConfirm()
        {
            Logger.Log.Info("Start ChangePasswordWithoutConfirm test.");
            StartPage startPage = new StartPage(DriverInstance.GetInstance())
                                  .OpenPage()
                                  .ClickSignInAccountButton()
                                  .FillInLoginAndPassword(Service.Service.WithUserPropertiesForSignIn())
                                  .ClickMyTicket();

            Thread.Sleep(100);
            MyTicketsPage myTicketsPage = new MyTicketsPage(DriverInstance.GetInstance())
                                          .ChangePassword(Service.Service.WithUserPropertiesWithoutRepeat());

            Assert.AreEqual(REQUIRED_LABEL_TO_FILL, myTicketsPage.GetConfirmPasswordSpace());
        }