Exemple #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");
        }
 public static void SignInWithValidData()
 {
     SignUp.CheckHomePage();
     SignIn.OpenForm();
     SignIn.FillCredentials(2);
     ProfilePages.CheckProfilePage();
 }
 public static void FillFluidCardDetails()
 {
     SignIn.OpenForm();
     SignIn.FillCredentials(2);
     ProfilePages.EditName(2);
     ProfilePages.FillCardField();
     ProfilePages.CheckName(2);
 }
 public static void EditProfileDescription()
 {
     SignIn.OpenForm();
     SignIn.FillCredentials(2);
     ProfilePages.OpenDescriptionTextfield();
     ProfilePages.FillDescription(2);
     ProfilePages.CheckProfileDescription(2);
 }
 public static void ChangePasswordWithValidPassword()
 {
     SignIn.OpenForm();
     SignIn.FillCredentials(2);
     ProfilePages.OpenChangePassword();
     ChangePassword.FillForm(3);
     ChangePassword.CheckNewPassword();
 }
Exemple #6
0
        public void GivenTheUserCreatesANewSkillToTrade()
        {
            //LogIn
            SignIn.OpenForm();
            SignIn.FillCredentials(2);

            //Create a new skill to trade
            ProfilePages.GoToShareSkill();
            ShareSkillPage.FillShareSkill(2);
            Thread.Sleep(3000);
        }
Exemple #7
0
        public void EraseShareSkill()
        {
            SignIn.OpenForm();
            SignIn.FillCredentials(2);

            //Check if the user is able to access the "ManageListing" page
            ProfilePages.GoToManageListing();

            //Check if the user is able to delete the last entry of the "ManageListing" page
            ManageListingPage.DeleteListing();

            //Check if the changes can be seen in the "Manage Listing" page
            ManageListingPage.CompareLastEntry();
        }
Exemple #8
0
        public void AddShareSkill()
        {
            SignIn.OpenForm();
            SignIn.FillCredentials(2);

            //Check if the user is able to access the "Share-Skill" function
            ProfilePages.GoToShareSkill();

            //Check if the user is able to fill the "Share-Skill" details
            ShareSkillPage.FillShareSkill(2);

            //Check if the user is able to see the Skill in the "Manage Listing" page
            ManageListingPage.CheckListing(2);
        }
        public static void CheckNewPassword()
        {
            //Logs out to try the new password
            Thread.Sleep(3000);
            ProfilePages.LogOut();
            SignIn.OpenForm();
            Thread.Sleep(1000);
            SignIn.FillCredentials(4);

            //Checks that the user is able to logIn and changes the password back again
            ProfilePages.CheckProfilePage();
            ProfilePages.OpenChangePassword();
            FillForm(2);
        }
Exemple #10
0
        public void EditShareSkill()
        {
            SignIn.OpenForm();
            SignIn.FillCredentials(2);

            //Check if the user is able to access the "Share-Skill" function
            ProfilePages.GoToManageListing();

            //Check if the user is able to access the "Share-Skill" function
            ManageListingPage.EditListing();

            //Check if the user is able to fill the Edit "Share-Skill" details
            ShareSkillPage.EditShareSkill(3);

            //Check if the changes can be seen in the "Manage Listage
            ManageListingPage.CheckListing(3);
        }
        public Bitmap DrawonBitmap(Bitmap bitmap, ProfilePages profilePage)
        {
            Graphics g = Graphics.FromImage(bitmap);

            List <LinesModel> lines = profilePage.DrawLines;

            foreach (var line in lines)
            {
                g.SmoothingMode     = SmoothingMode.AntiAlias;
                g.InterpolationMode = InterpolationMode.HighQualityBicubic;
                g.PixelOffsetMode   = PixelOffsetMode.HighQuality;
                Pen redPen = new Pen(Brushes.Red);
                g.DrawRectangle(redPen,
                                new Rectangle(line.X, line.Y, line.Width, line.Height));
            }
            g.Flush();

            return(bitmap);
        }
Exemple #12
0
 public void GivenTheUserNavigatesToTheManageListingPage()
 {
     ProfilePages.GoToManageListing();
 }
Exemple #13
0
 public void ThenIShouldSeeTheProfilePage()
 {
     ProfilePages.CheckProfilePage();
 }
Exemple #14
0
 public void ThenTheUserIsAbleToSeeTheChangesInTheFluidCard()
 {
     ProfilePages.CheckName(2);
 }
Exemple #15
0
 public void WhenTheUserClicksTheChangePasswordOptionInTheProfileMenu()
 {
     ProfilePages.OpenChangePassword();
 }
Exemple #16
0
 public void WhenTheUserEditsTheFluidcardDetails()
 {
     ProfilePages.EditName(2);
     ProfilePages.FillCardField();
 }
Exemple #17
0
 public void ThenTheUserIsAbleToSeeTheDescriptionInTheProfilePage()
 {
     ProfilePages.CheckProfileDescription(2);
 }
Exemple #18
0
 public void WhenTheUserFillsTheProfileDescription()
 {
     ProfilePages.FillDescription(2);
 }
Exemple #19
0
 public void WhenTheUserClicksTheEditIconInTheProfileDescription()
 {
     ProfilePages.OpenDescriptionTextfield();
 }
 private static string IsPageActive(ProfilePages page) => ActivePage == page ? "active" : "";
Exemple #21
0
 public void WhenTheUserClicksOnTheShareSkillButton()
 {
     ProfilePages.GoToShareSkill();
 }
Exemple #22
0
 public void GivenTheSkillHasBeenRequestedByALearner()
 {
     //LogsOut to allow the second user to request the Skill
     ProfilePages.LogOut();
     ManageRequestPage.GenerateNewRequest(5);
 }