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();
}
Aggregations