/// <summary> /// Only covers required fields /// </summary> public void SubmitPreReviewForCR() { ActivitiesNav.LnkSubmitPreReview.Click(); var submitPreReview = new SubmitPreReviewPopup(this.GetStudyID(), "Submit Pre-Review"); submitPreReview.SwitchTo(); submitPreReview.RadioBtnSubmitPreReviewYes.Click(); submitPreReview.BtnOk.Click(); submitPreReview.SwitchBackToParent(); //Wait.Until(h => new Link(By.LinkText("Pre-Review Submitted")).Exists); Wait.Until(h => ProjectLogHistory.VerifyFirstRowLink("Pre-Review Submitted") == true); }
/// <summary> /// Only covers required fields /// </summary> public void SubmitPreReviewForStudy(params SubmitPreReviewPopup.TypeOfResearch[] researchTypes) { ActivitiesNav.LnkSubmitPreReview.Click(); var submitPreReview = new SubmitPreReviewPopup(this.GetStudyID(), "Submit Pre-Review"); submitPreReview.SwitchTo(); submitPreReview.SpecifyRiskLevel(true); submitPreReview.SpecifyResearchTypes(researchTypes); submitPreReview.SubmitPreview(); submitPreReview.BtnOk.Click(); submitPreReview.SwitchBackToParent(); //Wait.Until(h => new Link(By.LinkText("Pre-Review Submitted")).Exists); Wait.Until(h => ProjectLogHistory.VerifyFirstRowLink("Pre-Review Submitted") == true); }
public void A2_SubmitPreReview() { // take a study in the previous pre-review state, clone it. string targetStudy = "AutoTest-" + DataGen.String(5); CloneEntity("STUDY00000011", targetStudy); var ActionsNav = new ActivitiesNav(); var AssignCoordinator = new AssignCoordinator("STUDY-" + targetStudy, "Assign Coordinator"); var IRBSubmissionsPage = new IRBSubmissions(); var Workspace = new IRBWorkspace(); // Login as irbd Store.LoginAsUser(Users.Irbd); IRBSubmissionsPage.OpenSubmissionByAllSubmissions(targetStudy); // Assign a coordinator Workspace.AssignCoordinator("Orlando Max (irbc)"); // verify link IRB Coordinator Assigned Assert.IsTrue(new CCElement(By.LinkText("IRB Coordinator Assigned")).Exists, "Cannot find 'IRB Coordinator Assigned' activity in history"); // Submit Pre-Review var PreReview = new SubmitPreReviewPopup(Workspace.GetStudyID(), "Submit Pre-Review"); ActionsNav.LnkSubmitPreReview.Click(); PreReview.SwitchTo(); PreReview.RdoRiskLevelGreater.Click(); PreReview.ChkBoxBioMedicalClinical.Click(); PreReview.RadioBtnSubmitPreReviewYes.Click(); PreReview.BtnOk.Click(); PreReview.SwitchBackToParent(); // verify link Pre-Review Submitted exists Wait.Until((d) => new CCElement(By.LinkText("Pre-Review Submitted")).Exists); Assert.IsTrue(new CCElement(By.LinkText("Pre-Review Submitted")).Exists, "Cannot find 'Pre-Review Submitted' activity in history"); }