Пример #1
0
        public static void HappyPathAsSeller()
        {
            //LogIn
            SignIn.OpenForm();
            SignIn.FillCredentials(2);

            //Create a new skill to trade
            ProfilePages.GoToShareSkill();
            ShareSkillPage.FillShareSkill(2);
            Thread.Sleep(3000);

            //LogsOut to allow the second user to request the Skill
            ProfilePages.LogOut();
            ManageRequestPage.GenerateNewRequest(5);

            //LogIn with the main account
            SignIn.OpenForm();
            SignIn.FillCredentials(2);

            //Navigate to Manage Received Request and accepts the Trade
            ManageRequestPage.NavigateToReceivedRequest();
            ManageRequestPage.AcceptRequest();

            //The User checks the new request
            ManageRequestPage.CheckNewRequestStatus("Accepted");
        }
Пример #2
0
 public static void ValidateDeclineRequest()
 {
     ManageRequestPage.GenerateNewRequest(5);
     SignIn.OpenForm();
     SignIn.FillCredentials(2);
     ManageRequestPage.NavigateToReceivedRequest();
     ManageRequestPage.DeclineRequest();
     ManageRequestPage.CheckNewRequestStatus("Declined");
 }
 public void ThenTheUserShouldSeeTheStatusOnTheRequestStatus(string Status)
 {
     ManageRequestPage.CheckNewRequestStatus(Status);
 }