コード例 #1
0
        /// <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);
        }
コード例 #2
0
        /// <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);
        }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
 /// <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);
 }
コード例 #5
0
        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");
        }