public void AssignDesignatedReviewer(string user)
 {
     ActivitiesNav.LnkAssignDesignatedReviewer.Click();
     var assignDesignatedReviewerPopup = new AssignDesignatedReviewer(this.GetStudyID(), "Assign Designated Reviewer");
     assignDesignatedReviewerPopup.SwitchTo();
     assignDesignatedReviewerPopup.CmbDesignatedReviewer.SelectByInnerText(user);
     assignDesignatedReviewerPopup.OkBtn.Click();
     assignDesignatedReviewerPopup.SwitchBackToParent();
     //Wait.Until((d) => new CCElement(By.LinkText("Assigned to Designated Reviewer")).Exists);
     Wait.Until(h => ProjectLogHistory.VerifyFirstRowLink("Assigned to Designated Reviewer") == true);
 }
Exemple #2
0
        public void AssignDesignatedReviewer(string user)
        {
            ActivitiesNav.LnkAssignDesignatedReviewer.Click();
            var assignDesignatedReviewerPopup = new AssignDesignatedReviewer(this.GetStudyID(), "Assign Designated Reviewer");

            assignDesignatedReviewerPopup.SwitchTo();
            assignDesignatedReviewerPopup.CmbDesignatedReviewer.SelectByInnerText(user);
            assignDesignatedReviewerPopup.OkBtn.Click();
            assignDesignatedReviewerPopup.SwitchBackToParent();
            //Wait.Until((d) => new CCElement(By.LinkText("Assigned to Designated Reviewer")).Exists);
            Wait.Until(h => ProjectLogHistory.VerifyFirstRowLink("Assigned to Designated Reviewer") == true);
        }
        public void PutIntoReview()
        {
            // Take an existing study in the pre-review completed state, and clone it, put into non-committe review -- use one of the clones in this test
            string targetStudy = "AutoTest-" + DataGen.String(5);
            CloneEntity("STUDY-AutoTest-SMVPz", targetStudy);

            var ActionsNav = new ActivitiesNav();
            var Inbox = new Inbox();
            //var DesignatedReviewerPopup = new AssignDesignatedReviewer();
            var IRBSubmissionPage = new IRBSubmissions();
            var StudyWorkspace = new IRBWorkspace();

            // Login as irbd
            Store.LoginAsUser(Users.Irbd);
            IRBSubmissionPage.OpenSubmissionByAllSubmissions(targetStudy);

            // Assign Designated Reviewer
            var DesignatedReviewerPopup = new AssignDesignatedReviewer(StudyWorkspace.GetStudyID(),"Assign Designated Reviewer");
            ActionsNav.LnkAssignDesignatedReviewer.Click();
            DesignatedReviewerPopup.SwitchTo();
            DesignatedReviewerPopup.CmbDesignatedReviewer.SelectByInnerText("Harry Smith (comm4)");
            DesignatedReviewerPopup.OkBtn.Click();
            DesignatedReviewerPopup.SwitchBackToParent();

            Wait.Until((d) => new CCElement(By.LinkText("Assigned to Designated Reviewer")).Exists);
            Assert.IsTrue(new CCElement(By.LinkText("Assigned to Designated Reviewer")).Exists);
        }