use of org.mifos.test.acceptance.framework.center.CreateCenterPreviewDataPage in project head by mifos.
the class CenterTestHelper method createCenterWithQuestionGroupsEdited.
public CenterViewDetailsPage createCenterWithQuestionGroupsEdited(CreateCenterEnterDataPage.SubmitFormParameters formParameters, String officeName, QuestionResponseParameters responseParams, QuestionResponseParameters responseParams2) {
QuestionResponsePage responsePage = navigationHelper.navigateToClientsAndAccountsPage().navigateToCreateNewCenterPage().selectOffice(officeName).submitAndNavigateToQuestionResponsePage(formParameters);
responsePage.populateAnswers(responseParams);
responsePage.navigateToNextPage();
new CreateCenterPreviewDataPage(selenium).navigateToEditQuestionResponsePage();
responsePage.populateAnswers(responseParams2);
responsePage.navigateToNextPage();
return new CreateCenterPreviewDataPage(selenium).submit().navigateToCenterViewDetailsPage();
}
use of org.mifos.test.acceptance.framework.center.CreateCenterPreviewDataPage in project head by mifos.
the class CreateGroupEnterDataPage method submitAndGotoCreateGroupPreviewDataPage.
public CreateCenterPreviewDataPage submitAndGotoCreateGroupPreviewDataPage(SubmitFormParameters parameters) {
typeTextIfNotEmpty("createnewcenter.input.name", parameters.getCenterName());
selectIfNotEmpty("loanOfficerId", parameters.getLoanOfficer());
selenium.click("createnewcenter.link.meetingSchedule");
waitForPageToLoad();
CreateMeetingPage meetingPage = new CreateMeetingPage(selenium);
meetingPage.submitAndGotoCreateCenterEnterDataPage(parameters.getMeeting());
selenium.click("createnewcenter.button.preview");
waitForPageToLoad();
return new CreateCenterPreviewDataPage(selenium);
}
Aggregations