Search in sources :

Example 1 with CreateLoanAccountsSearchPage

use of org.mifos.test.acceptance.framework.loan.CreateLoanAccountsSearchPage in project head by mifos.

the class CreateMultipleLoanAccountTest method verifyInactiveBranchesOfficersCentersDoesntAppearOnSearch.

/**
     * Verify that only "Active" branches, centers and loan officers are available
     * on the Search field and "Loan Instances" field populates with the names
     * of loan instances matching the frequency of the center selected.
     * http://mifosforge.jira.com/browse/MIFOSTEST-59
     *
     * @throws Exception
     */
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void verifyInactiveBranchesOfficersCentersDoesntAppearOnSearch() throws Exception {
    EditCustomerStatusParameters customerStatusParams = new EditCustomerStatusParameters();
    customerStatusParams.setCenterStatus(CenterStatus.INACTIVE);
    customerStatusParams.setNote("note");
    CreateLoanAccountsSearchPage multipleAccPage = navigateToCreateMultipleLoanAccountsSearchPage();
    multipleAccPage.selectBranchOfficerAndCenter("branch2", "loanofficerbranch2 loanofficerbranch2", "branch2 center");
    userHelper.changeUserStatus("loanofficerbranch2 loanofficerbranch2", EditUserDataPage.STATUS_INACTIVE);
    centerTestHelper.changeCenterStatus("branch2 center", customerStatusParams);
    officeHelper.changeOfficeStatus("branch2", OfficeEditInformationPage.STATUS_INACTIVE);
    multipleAccPage = navigateToCreateMultipleLoanAccountsSearchPage();
    multipleAccPage.verifyBranchNotInSelectOptions("branch2");
    officeHelper.changeOfficeStatus("branch2", OfficeEditInformationPage.STATUS_ACTIVE);
    multipleAccPage = navigateToCreateMultipleLoanAccountsSearchPage();
    multipleAccPage.verifyOfficerNotInSelectOptions("branch2", "loanofficerbranch2 loanofficerbranch2");
    multipleAccPage.verifyCenterIsNotInSelectOptions("branch2", "branch2 center");
}
Also used : EditCustomerStatusParameters(org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters) CreateLoanAccountsSearchPage(org.mifos.test.acceptance.framework.loan.CreateLoanAccountsSearchPage)

Aggregations

EditCustomerStatusParameters (org.mifos.test.acceptance.framework.group.EditCustomerStatusParameters)1 CreateLoanAccountsSearchPage (org.mifos.test.acceptance.framework.loan.CreateLoanAccountsSearchPage)1