use of org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage in project head by mifos.
the class BackDateLoanProductTest method cannotCreateLoanProductMoreThanOneYearInFutureWhenBackDatingIsEnabled.
@Test(enabled = true)
public void cannotCreateLoanProductMoreThanOneYearInFutureWhenBackDatingIsEnabled() {
propertiesHelper.setBackDatedLoanProductCreationAllowed(true);
DefineNewLoanProductPage newLoanProductPage = preparePageForTest();
newLoanProductPage.fillStartDate("9999", "11", "11");
newLoanProductPage = newLoanProductPage.submitWithErrors();
Assert.isTrue(newLoanProductPage.getSelenium().isTextPresent("The Start date can be anything up to 1 year" + " from the current date."));
}
use of org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage in project head by mifos.
the class BackDateLoanProductTest method preparePageForTest.
private DefineNewLoanProductPage preparePageForTest() {
NavigationHelper navigationHelper = new NavigationHelper(selenium);
AdminPage adminPage = navigationHelper.navigateToAdminPage();
DefineNewLoanProductPage newLoanProductPage = adminPage.navigateToDefineLoanProduct();
SubmitFormParameters parameters = FormParametersHelper.getMonthlyLoanProductParameters();
return newLoanProductPage.fillLoanParameters(parameters);
}
use of org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage in project head by mifos.
the class BackDateLoanProductTest method canCreateLoanProductInPastWhenBackDatingIsEnabled.
@Test(enabled = true)
public void canCreateLoanProductInPastWhenBackDatingIsEnabled() {
propertiesHelper.setBackDatedLoanProductCreationAllowed(true);
DefineNewLoanProductPage newLoanProductPage = preparePageForTest();
newLoanProductPage.fillStartDate("1111", "11", "11");
DefineNewLoanProductPreviewPage previewPage = newLoanProductPage.submitAndGotoNewLoanProductPreviewPage();
previewPage.submit();
}
Aggregations