Search in sources :

Example 1 with CreateOfficeConfirmationPage

use of org.mifos.test.acceptance.framework.office.CreateOfficeConfirmationPage 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)

Aggregations

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