public void ModificationOtherPartsOfStudyCreationThroughCommitteeReviewWithModificationRequiredToApproved() { string targetStudy = "AutoTest-" + DataGen.String(5); EntityClonerUtil.CloneEntity("STUDY00000024", targetStudy, true); var ActionsNav = new ActivitiesNav(); var submissionPage = new IRBSubmissions(); var ModificationsPage = new InitialModCrSmartForm(); var ModificationInfoPage = new ModificationInformation(); var Workspace = new IRBWorkspace(); var StudySF = new InitialStudySmartForm(); Store.LoginAsUser(Users.Pi); submissionPage.OpenSubmissionByAllSubmissions(targetStudy); // Log in as the PI and go to the IRB/Active tab and select an Approved study, // Create Modification/CR , select “Modification” and “Other parts of the study”. // Make changes to one or more views of the study. ActionsNav.ImgCreateModCr.Click(); ModificationsPage.RdoModification.Click(); ModificationsPage.ChooseModificationScope(Scope.OtherPartsOfTheStudy); //ModificationsPage.BtnContinue ModificationsPage.BtnContinue.Click(); ModificationInfoPage.TxtSummary.Value = "This is a test summary for modification."; ModificationsPage.BtnContinue.Click(); //StudySF.StudyTeamMembersPage.AddStudyTeamMember("Elmira (comm1)", false, false, AddStudyTeamMemberPopup.Roles.CoInvestigator, AddStudyTeamMemberPopup.Roles.ResearchAssistant); //StudySF.StudyTeamMembersPage.BtnContinue.Click(); // save and exit smartform StudySF.LnkSave.Click(); StudySF.LnkExit.Click(); // As the PI, Submit the modification. Workspace.SubmitMod(Users.Pi.UserName, Users.Pi.Password); PopUpWindow.SwitchTo(targetStudy, true); // why does Exists not retry? Wait.Until(h => new CCElement(By.LinkText("Submitted")).Exists); Assert.IsTrue(new CCElement(By.LinkText("Submitted")).Exists, "Attempted submitted mod does not exist for: " + targetStudy); // Log in as the assigned IRB Coordinator and Submit Pre-Review. // Log in as assigned IRB Coordinator, Assign to Meeting. // As the assigned IRB Coordinator, Submit Committee Review (modifications required to secure “approved” determination) // Log in as assigned IRB Coordinator and Finalize Documents. // As the assigned IRB Coordinator, Prepare Letter. // As the assigned IRB Coordinator, Send Letter. }
public void MODCRStudyTeamOnlyCreationThroughNonCommitteeReviewWithModificationsRequiredToApproved() { string targetStudy = "AutoTest-" + DataGen.String(5); EntityClonerUtil.CloneEntity("STUDY00000024", targetStudy, true); var CRSmartForm = new InitialModCrSmartForm(); var StudySF = new InitialStudySmartForm(); var workspace = new IRBWorkspace(); var irbSubmissionsPage = new IRBSubmissions(); var actionsNav = new ActionsNav(); // Log in as the PI and go to the IRB/Active tab and select an Approved study, Create Modification/CR , // select “Modification and Continuing” and “Other parts of the study”. Make changes to one or more views of the study. Store.LoginAsUser(Users.Pi); irbSubmissionsPage.OpenSubmissionByAllSubmissions(targetStudy); actionsNav.ImgCreateModCr.Click(); // Fill in just required info CRSmartForm.ChooseModCRPurpose(SubmissionPurpose.ModAndCR); CRSmartForm.ChooseModificationScope(Scope.StudyTeamMemberInformation); CRSmartForm.BtnContinue.Click(); CRSmartForm.SpecifyEnrollmentTotals("2", "2", "1"); CRSmartForm.ChooseResearchMilestone(InitialModCrSmartForm.MileStones.StudyPermanentlyClosedToEnrollment, InitialModCrSmartForm.MileStones.AllSubjectCompletedStudyRelatedInterventions, InitialModCrSmartForm.MileStones.CollectionOfPrivateInfoComplete, InitialModCrSmartForm.MileStones.AnalysisOfPrivateInfoComplete); CRSmartForm.RdoFinancialInterestNo.Click(); CRSmartForm.BtnContinue.Click(); // Modification Page CRSmartForm.TxtSummarizeModifications.Value = "These are the new modifications! :/ :) :P"; CRSmartForm.BtnContinue.Click(); // Add a study team member, save, exit StudySF.StudyTeamMembersPage.AddStudyTeamMember(false, false, "", AddStudyTeamMemberPopup.Roles.CoInvestigator); StudySF.LnkSave.Click(); StudySF.LnkExit.Click(); //As the PI, Submit the Mod. workspace.Submit(Users.Pi.UserName, Users.Pi.Password); Assert.IsTrue(new Link(By.LinkText("Submitted")).Exists, "'Submitted' activity not found for: " + targetStudy); Assert.IsTrue(workspace.GetStudyState() == "Pre-Review", "State expected not in 'Pre-Review'. State currently: " + workspace.GetStudyState()); var CRName = Web.PortalDriver.Title; //Log in as the assigned coordinator and Submit Pre-Review Store.LoginAsUser(Users.Irbc); irbSubmissionsPage.OpenSubmissionByAllSubmissions(CRName); workspace.SubmitPreReviewForCR(); // As the assigned IRBC, Assign Designated Reviewer. Store.LoginAsUser(Users.Irbc); irbSubmissionsPage.OpenSubmissionByAllSubmissions(CRName); workspace.AssignDesignatedReviewer("Harry Smith (comm4)"); Assert.IsTrue(workspace.GetStudyState() == "Non-Committee Review", "State expected not in 'Non-Committee Review'. State currently: " + workspace.GetStudyState()); // Log in as the Designated Reviewer and Submit Designated Review approved. Store.LoginAsUser(Users.Comm4); irbSubmissionsPage.OpenSubmissionByAllSubmissions(CRName); workspace.SubmitDesignatedReviewForStudy(SubmitDesignatedReview.StudyDeterminations.ModificationsRequiredToSecureApproved, "These are modifications required: :/", true); Assert.IsTrue(workspace.GetStudyState() == "Post-Review", "State expected not in 'Post-Review'. State currently: " + workspace.GetStudyState()); // As the assigned IRB Coordinator, Finalize Documents. Store.LoginAsUser(Users.Irbc); irbSubmissionsPage.OpenSubmissionByAllSubmissions(CRName); workspace.FinalizeDocuments(); Assert.IsTrue(workspace.GetStudyState() == "Post-Review", "State expected not in 'Post-Review'. State currently: " + workspace.GetStudyState()); //As the assigned coordinator, Prepare Letter. workspace.PrepareLetter(); Assert.IsTrue(workspace.GetStudyState() == "Post-Review", "State expected not in 'Post-Review'. State currently: " + workspace.GetStudyState()); // As the assigned coordinator, Send Letter. workspace.SendLetter(); Assert.IsTrue(workspace.GetStudyState() == "Modifications Required", "State expected not in 'Modifications Required'. State currently: " + workspace.GetStudyState()); // Log in as the PI and Submit Response. Store.LoginAsUser(Users.Pi); irbSubmissionsPage.OpenSubmissionByAllSubmissions(CRName); workspace.SubmitResponse(Users.Pi.UserName, Users.Pi.Password, "This is my response! :P"); Assert.IsTrue(workspace.GetStudyState() == "Modifications Submitted", "State expected not in 'Modifications Submitted'. State currently: " + workspace.GetStudyState()); // Log in as the assigned IRB Coordinator, Review Required Modifications (Yes to the question “Were the modifications completed as required?” “yes” response) Store.LoginAsUser(Users.Irbc); irbSubmissionsPage.OpenSubmissionByAllSubmissions(CRName); workspace.ReviewRequiredModifications(); Assert.IsTrue(workspace.GetStudyState() == "Post-Review", "State expected not in 'Post-Review'. State currently: " + workspace.GetStudyState()); //As the assigned coordinator, Prepare Letter. workspace.PrepareLetter(); Assert.IsTrue(workspace.GetStudyState() == "Post-Review", "State expected not in 'Post-Review'. State currently: " + workspace.GetStudyState()); // As the assigned coordinator, Send Letter. workspace.SendLetter(); Assert.IsTrue(workspace.GetStudyState() == "Approved", "State expected not in 'Approved'. State currently: " + workspace.GetStudyState()); }
public void MODCRStudyTeamOnlyCreationThroughCommitteeReviewToDeferred() { string targetStudy = "AutoTest-" + DataGen.String(5); EntityClonerUtil.CloneEntity("STUDY00000024", targetStudy, true); var CRSmartForm = new InitialModCrSmartForm(); var StudySF = new InitialStudySmartForm(); var workspace = new IRBWorkspace(); var irbSubmissionsPage = new IRBSubmissions(); var actionsNav = new ActionsNav(); // Log in as the PI and go to the IRB/Active tab and select an Approved study, Create Modification/CR , // select “Modification and Continuing” and “Other parts of the study”. Make changes to one or more views of the study. Store.LoginAsUser(Users.Pi); irbSubmissionsPage.OpenSubmissionByAllSubmissions(targetStudy); actionsNav.ImgCreateModCr.Click(); // Fill in just required info CRSmartForm.ChooseModCRPurpose(SubmissionPurpose.ModAndCR); CRSmartForm.ChooseModificationScope(Scope.StudyTeamMemberInformation); CRSmartForm.BtnContinue.Click(); CRSmartForm.SpecifyEnrollmentTotals("2", "2", "1"); CRSmartForm.ChooseResearchMilestone(InitialModCrSmartForm.MileStones.StudyPermanentlyClosedToEnrollment, InitialModCrSmartForm.MileStones.AllSubjectCompletedStudyRelatedInterventions, InitialModCrSmartForm.MileStones.CollectionOfPrivateInfoComplete, InitialModCrSmartForm.MileStones.AnalysisOfPrivateInfoComplete); CRSmartForm.RdoFinancialInterestNo.Click(); CRSmartForm.BtnContinue.Click(); // Modification Page CRSmartForm.TxtSummarizeModifications.Value = "These are the new modifications! :/ :) :P"; CRSmartForm.BtnContinue.Click(); // Add a study team member, save, exit //StudySF.StudyTeamMembersPage.AddStudyTeamMember("Czerch (comm2)", false, false, AddStudyTeamMemberPopup.Roles.CoInvestigator); // test to see if "" selects first value... StudySF.StudyTeamMembersPage.AddStudyTeamMember(false, false, "", AddStudyTeamMemberPopup.Roles.CoInvestigator); StudySF.LnkSave.Click(); StudySF.LnkExit.Click(); //As the PI, Submit. workspace.Submit(Users.Pi.UserName, Users.Pi.Password); Assert.IsTrue(new Link(By.LinkText("Submitted")).Exists, "'Submitted' activity not found for: " + targetStudy); Assert.IsTrue(workspace.GetStudyState() == "Pre-Review", "State expected not in 'Pre-Review'. State currently: " + workspace.GetStudyState()); var CRName = Web.PortalDriver.Title; //Log in as the assigned coordinator and Submit Pre-Review Store.LoginAsUser(Users.Irbc); irbSubmissionsPage.OpenSubmissionByAllSubmissions(CRName); workspace.SubmitPreReviewForCR(); Assert.IsTrue(workspace.GetStudyState() == "Pre-Review Completed", "State expected not in 'Pre-Review Completed'. State currently: " + workspace.GetStudyState()); // Log in as an IRB coordinator and Assign Coordinator Store.LoginAsUser(Users.Irbc); irbSubmissionsPage.OpenSubmissionByAllSubmissions(CRName); workspace.AssignCoordinator("Orlando Max (irbc)"); //As the assigned coordinator, Assign Meeting. workspace.AssignMeetingByFirstMeeting(); Assert.IsTrue(workspace.GetStudyState() == "Committee Review"); //As the assigned coordinator, Submit Committee Review (approved determination). // need determination, risk level workspace.SubmitCommitteeReview(SubmitCommitteeReviewPopup.Determinations.Deferred, "2", "0", "0", "0", "0", "", true); Assert.IsTrue(workspace.GetStudyState() == "Post-Review", "State expected not in 'Post-Review'. State currently: " + workspace.GetStudyState()); // As the assigned IRB Coordinator, Finalize Documents. workspace.FinalizeDocuments(); Assert.IsTrue(workspace.GetStudyState() == "Post-Review", "State expected not in 'Post-Review'. State currently: " + workspace.GetStudyState()); //As the assigned coordinator, Prepare Letter. workspace.PrepareLetter(); Assert.IsTrue(workspace.GetStudyState() == "Post-Review", "State expected not in 'Post-Review'. State currently: " + workspace.GetStudyState()); // As the assigned coordinator, Send Letter. workspace.SendLetter(); Assert.IsTrue(workspace.GetStudyState() == "Deferred", "State expected not in 'Deferred'. State currently: " + workspace.GetStudyState()); }