Search in sources :

Example 1 with CreateLoanAccountSelectLoanProductPage

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

the class CreateClientLoanAccountTest method verifyCancelButtons.

/**
    * Verify functionality of 'Cancel' buttons during the Loan creation flow
    * http://mifosforge.jira.com/browse/MIFOSTEST-1178
    *
    * @throws Exception
    */
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void verifyCancelButtons() throws Exception {
    ClientsAndAccountsHomepage clientsAndAccountsHomepage = navigationHelper.navigateToClientsAndAccountsPage();
    CreateLoanAccountSearchPage createLoanAccountSearchPage = clientsAndAccountsHomepage.navigateToCreateLoanAccountUsingLeftMenu();
    createLoanAccountSearchPage.cancel();
    clientsAndAccountsHomepage.navigateToCreateLoanAccountUsingLeftMenu();
    CreateLoanAccountSearchParameters formParameters = new CreateLoanAccountSearchParameters();
    formParameters.setSearchString("%");
    createLoanAccountSearchPage.navigateToCreateLoanAccountEntryPage(formParameters);
    createLoanAccountSearchPage.cancel();
    clientsAndAccountsHomepage.navigateToCreateLoanAccountUsingLeftMenu();
    CreateLoanAccountSearchParameters formParameters2 = new CreateLoanAccountSearchParameters();
    formParameters2.setSearchString("Client1233266063395");
    CreateLoanAccountSelectLoanProductPage createLoanAccountSelectLoanProductPage = createLoanAccountSearchPage.navigateToCreateLoanAccountSelectLoanProductPage(formParameters2);
    createLoanAccountSelectLoanProductPage.cancel();
    clientsAndAccountsHomepage.navigateToCreateLoanAccountUsingLeftMenu();
    formParameters2.setLoanProduct("ClientEmergencyLoan");
    CreateLoanAccountEntryPage createLoanAccountEntryPage = createLoanAccountSearchPage.searchAndNavigateToCreateLoanAccountPage(formParameters2);
    createLoanAccountEntryPage.cancel();
    clientsAndAccountsHomepage.navigateToCreateLoanAccountUsingLeftMenu();
    createLoanAccountSearchPage.searchAndNavigateToCreateLoanAccountPage(formParameters2);
    CreateLoanAccountReviewInstallmentPage createLoanAccountReviewInstallmentPage = createLoanAccountEntryPage.navigateToReviewInstallmentsPage();
    createLoanAccountReviewInstallmentPage.cancel();
    clientsAndAccountsHomepage.navigateToCreateLoanAccountUsingLeftMenu();
    createLoanAccountSearchPage.searchAndNavigateToCreateLoanAccountPage(formParameters2);
    createLoanAccountEntryPage.navigateToReviewInstallmentsPage();
    CreateLoanAccountPreviewPage createLoanAccountPreviewPage = createLoanAccountReviewInstallmentPage.clickPreviewAndGoToReviewLoanAccountPage();
    createLoanAccountPreviewPage.cancel();
}
Also used : CreateLoanAccountSearchParameters(org.mifos.test.acceptance.framework.loan.CreateLoanAccountSearchParameters) CreateLoanAccountSearchPage(org.mifos.test.acceptance.framework.loan.CreateLoanAccountSearchPage) CreateLoanAccountPreviewPage(org.mifos.test.acceptance.framework.loan.CreateLoanAccountPreviewPage) ClientsAndAccountsHomepage(org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage) CreateLoanAccountSelectLoanProductPage(org.mifos.test.acceptance.framework.loan.CreateLoanAccountSelectLoanProductPage) CreateLoanAccountReviewInstallmentPage(org.mifos.test.acceptance.framework.loan.CreateLoanAccountReviewInstallmentPage) CreateLoanAccountEntryPage(org.mifos.test.acceptance.framework.loan.CreateLoanAccountEntryPage)

Aggregations

ClientsAndAccountsHomepage (org.mifos.test.acceptance.framework.ClientsAndAccountsHomepage)1 CreateLoanAccountEntryPage (org.mifos.test.acceptance.framework.loan.CreateLoanAccountEntryPage)1 CreateLoanAccountPreviewPage (org.mifos.test.acceptance.framework.loan.CreateLoanAccountPreviewPage)1 CreateLoanAccountReviewInstallmentPage (org.mifos.test.acceptance.framework.loan.CreateLoanAccountReviewInstallmentPage)1 CreateLoanAccountSearchPage (org.mifos.test.acceptance.framework.loan.CreateLoanAccountSearchPage)1 CreateLoanAccountSearchParameters (org.mifos.test.acceptance.framework.loan.CreateLoanAccountSearchParameters)1 CreateLoanAccountSelectLoanProductPage (org.mifos.test.acceptance.framework.loan.CreateLoanAccountSelectLoanProductPage)1