public static void ValidateWithdrawRequest()
 {
     SignIn.OpenForm();
     SignIn.FillCredentials(2);
     ManageRequestPage.GenerateNewRequest(2);
     ManageRequestPage.NavigateToSentRequest();
     ManageRequestPage.WithdrawRequest();
     ManageRequestPage.CheckNewSentStatus("Withdrawn");
 }
 public static void ValidateCompletedRequest()
 {
     SignIn.OpenForm();
     SignIn.FillCredentials(2);
     ManageRequestPage.GenerateNewRequest(2);
     ManageRequestPage.AcceptRequestWithOtherUser();
     ManageRequestPage.NavigateToSentRequest();
     ManageRequestPage.CompletedRequest();
     ManageRequestPage.CheckNewSentStatus("Completed");
 }
Esempio n. 3
0
        public static void HappyPathAsLearner()
        {
            //LogIn
            SignIn.OpenForm();
            SignIn.FillCredentials(2);

            //Check if user is able to click on search icon
            SearchSkills.ClickOnSearchButton();

            //Check if user is able to input username
            SearchSkills.EnterUserName(4);

            //Check if user can open a Skill Box
            SearchSkills.ClickOnOnFirstBox();

            //Sent a request for an already opened Skill
            ManageRequestPage.SentRequest();

            //Go to manage request page
            ManageRequestPage.NavigateToSentRequest();

            //The User checks the new request
            ManageRequestPage.CheckNewSentStatus("Pending");
        }
 public void ThenTheUserShouldSeeTheStatusOnTheSentRequestStatus(string status)
 {
     ManageRequestPage.CheckNewSentStatus(status);
 }