Search in sources :

Example 1 with CreateOfficeEnterDataPage

use of org.mifos.test.acceptance.framework.office.CreateOfficeEnterDataPage in project head by mifos.

the class OfficeHelper method createOffice.

/**
     * Creates an office.
     * @param officeParameters The office parameters.
     * @return The admin page.
     */
public AdminPage createOffice(OfficeParameters officeParameters) {
    AdminPage adminPage = navigationHelper.navigateToAdminPage();
    CreateOfficeEnterDataPage officeEnterDataPage = adminPage.navigateToCreateOfficeEnterDataPage();
    officeEnterDataPage.verifyPage();
    CreateOfficePreviewDataPage previewDataPage = officeEnterDataPage.submitAndGotoCreateOfficePreviewDataPage(officeParameters);
    previewDataPage.verifyPage();
    CreateOfficeConfirmationPage confirmationPage = previewDataPage.submit();
    confirmationPage.verifyPage();
    OfficeViewDetailsPage detailsPage = confirmationPage.navigateToOfficeViewDetailsPage();
    detailsPage.verifyPage();
    return detailsPage.navigateToAdminPage();
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) CreateOfficePreviewDataPage(org.mifos.test.acceptance.framework.office.CreateOfficePreviewDataPage) OfficeViewDetailsPage(org.mifos.test.acceptance.framework.office.OfficeViewDetailsPage) CreateOfficeEnterDataPage(org.mifos.test.acceptance.framework.office.CreateOfficeEnterDataPage) CreateOfficeConfirmationPage(org.mifos.test.acceptance.framework.office.CreateOfficeConfirmationPage)

Example 2 with CreateOfficeEnterDataPage

use of org.mifos.test.acceptance.framework.office.CreateOfficeEnterDataPage in project head by mifos.

the class OfficeHelper method navigateToQuestionResponsePage.

public QuestionResponsePage navigateToQuestionResponsePage(OfficeParameters officeParameters) {
    AdminPage adminPage = navigationHelper.navigateToAdminPage();
    CreateOfficeEnterDataPage officeEnterDataPage = adminPage.navigateToCreateOfficeEnterDataPage();
    officeEnterDataPage.verifyPage();
    QuestionResponsePage questionResponsePage = officeEnterDataPage.submitAndGotoQuestionResponsePage(officeParameters);
    questionResponsePage.verifyPage();
    return questionResponsePage;
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) QuestionResponsePage(org.mifos.test.acceptance.framework.questionnaire.QuestionResponsePage) CreateOfficeEnterDataPage(org.mifos.test.acceptance.framework.office.CreateOfficeEnterDataPage)

Aggregations

AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)2 CreateOfficeEnterDataPage (org.mifos.test.acceptance.framework.office.CreateOfficeEnterDataPage)2 CreateOfficeConfirmationPage (org.mifos.test.acceptance.framework.office.CreateOfficeConfirmationPage)1 CreateOfficePreviewDataPage (org.mifos.test.acceptance.framework.office.CreateOfficePreviewDataPage)1 OfficeViewDetailsPage (org.mifos.test.acceptance.framework.office.OfficeViewDetailsPage)1 QuestionResponsePage (org.mifos.test.acceptance.framework.questionnaire.QuestionResponsePage)1