Search in sources :

Example 1 with CreateCenterPreviewDataPage

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();
}
Also used : QuestionResponsePage(org.mifos.test.acceptance.framework.questionnaire.QuestionResponsePage) CreateCenterPreviewDataPage(org.mifos.test.acceptance.framework.center.CreateCenterPreviewDataPage)

Example 2 with CreateCenterPreviewDataPage

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);
}
Also used : CreateCenterPreviewDataPage(org.mifos.test.acceptance.framework.center.CreateCenterPreviewDataPage) CreateMeetingPage(org.mifos.test.acceptance.framework.center.CreateMeetingPage)

Aggregations

CreateCenterPreviewDataPage (org.mifos.test.acceptance.framework.center.CreateCenterPreviewDataPage)2 CreateMeetingPage (org.mifos.test.acceptance.framework.center.CreateMeetingPage)1 QuestionResponsePage (org.mifos.test.acceptance.framework.questionnaire.QuestionResponsePage)1