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(); }
public void GivenTheUserCreatesANewSkillToTrade() { //LogIn SignIn.OpenForm(); SignIn.FillCredentials(2); //Create a new skill to trade ProfilePages.GoToShareSkill(); ShareSkillPage.FillShareSkill(2); Thread.Sleep(3000); }
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(); }
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); }
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); }
public void GivenTheUserNavigatesToTheManageListingPage() { ProfilePages.GoToManageListing(); }
public void ThenIShouldSeeTheProfilePage() { ProfilePages.CheckProfilePage(); }
public void ThenTheUserIsAbleToSeeTheChangesInTheFluidCard() { ProfilePages.CheckName(2); }
public void WhenTheUserClicksTheChangePasswordOptionInTheProfileMenu() { ProfilePages.OpenChangePassword(); }
public void WhenTheUserEditsTheFluidcardDetails() { ProfilePages.EditName(2); ProfilePages.FillCardField(); }
public void ThenTheUserIsAbleToSeeTheDescriptionInTheProfilePage() { ProfilePages.CheckProfileDescription(2); }
public void WhenTheUserFillsTheProfileDescription() { ProfilePages.FillDescription(2); }
public void WhenTheUserClicksTheEditIconInTheProfileDescription() { ProfilePages.OpenDescriptionTextfield(); }
private static string IsPageActive(ProfilePages page) => ActivePage == page ? "active" : "";
public void WhenTheUserClicksOnTheShareSkillButton() { ProfilePages.GoToShareSkill(); }
public void GivenTheSkillHasBeenRequestedByALearner() { //LogsOut to allow the second user to request the Skill ProfilePages.LogOut(); ManageRequestPage.GenerateNewRequest(5); }