use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage in project head by mifos.
the class CollectionSheetEntryCustomerAccountTest method enterAndSubmitCustomerAccountData.
private CollectionSheetEntryConfirmationPage enterAndSubmitCustomerAccountData(SubmitFormParameters formParameters, double[] customerAcctValues) {
CollectionSheetEntrySelectPage selectPage = new CollectionSheetEntryTestHelper(selenium).loginAndNavigateToCollectionSheetEntrySelectPage();
selectPage.verifyPage();
CollectionSheetEntryEnterDataPage enterDataPage = selectCenterAndContinue(formParameters, selectPage);
enterFirstGroupCustomerAccountValues(enterDataPage, customerAcctValues);
enterGenericCustomerAccountValues(enterDataPage);
CollectionSheetEntryPreviewDataPage previewPage = enterDataPage.submitAndGotoCollectionSheetEntryPreviewDataPage();
previewPage.verifyPage(formParameters);
CollectionSheetEntryConfirmationPage confirmationPage = previewPage.submitAndGotoCollectionSheetEntryConfirmationPage();
confirmationPage.verifyPage();
return confirmationPage;
}
use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage in project head by mifos.
the class CollectionSheetEntryCustomerAccountTest method previousPaidFeeNotDisplayedOnSecondCollectionSheetEntry.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public // one of the dependent methods throws Exception
void previousPaidFeeNotDisplayedOnSecondCollectionSheetEntry() throws Exception {
SubmitFormParameters formParameters = getFormParametersForTestOffice();
initRemote.dataLoadAndCacheRefresh(dbUnitUtilities, "acceptance_small_003_dbunit.xml", dataSource, selenium);
CollectionSheetEntryConfirmationPage confirmationPage = enterAndSubmitCustomerAccountData(formParameters, BASIC_CUSTOMER_ACCT_VALUES);
// navigate back to collection sheet entry
HomePage homePage = confirmationPage.navigateToHomePage();
ClientsAndAccountsHomepage clientsAndAccountsPage = homePage.navigateToClientsAndAccountsUsingHeaderTab();
CollectionSheetEntrySelectPage selectPage = clientsAndAccountsPage.navigateToEnterCollectionSheetDataUsingLeftMenu();
selectPage.verifyPage();
// enter same search data and inspect displayed client account (A/C
// Collection) values
CollectionSheetEntryEnterDataPage enterDataPage = selectCenterAndContinue(formParameters, selectPage);
enterDataPage.verifyCustomerAccountValue(0, 6, 0.0);
enterDataPage.verifyCustomerAccountValue(1, 6, 0.0);
enterDataPage.verifyCustomerAccountValue(2, 6, 0.0);
enterDataPage.verifyCustomerAccountValue(3, 6, 0.0);
enterDataPage.verifyCustomerAccountValue(4, 6, 0.0);
enterDataPage.cancel();
}
use of org.mifos.test.acceptance.framework.collectionsheet.CollectionSheetEntrySelectPage in project head by mifos.
the class CollectionSheetEntryInputErrorsTest method clickingContinueInBulkEntryPageAndOnlyEnteringBranchShouldResultInErrorMessage.
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public // one of the dependent methods throws Exception
void clickingContinueInBulkEntryPageAndOnlyEnteringBranchShouldResultInErrorMessage() throws Exception {
initRemote.dataLoadAndCacheRefresh(dbUnitUtilities, "acceptance_small_003_dbunit.xml", dataSource, selenium);
CollectionSheetEntrySelectPage selectPage = new CollectionSheetEntryTestHelper(selenium).loginAndNavigateToCollectionSheetEntrySelectPage();
selectPage.verifyPage();
SubmitFormParameters formParameters = setFormParametersForTestOffice("MyOffice1233265929385", null, null, null);
selectPage.fillOutDropDownMenusWithGivenInput(formParameters);
selectPage.submit();
selectPage.verifyPage();
Assert.assertTrue(selectPage.isErrorMessageDisplayed());
}
Aggregations