use of org.mifos.test.acceptance.framework.HomePage in project head by mifos.
the class PersonnelTest method loginSuccessfully.
private HomePage loginSuccessfully() {
(new MifosPage(selenium)).logout();
LoginPage loginPage = new AppLauncher(selenium).launchMifos();
loginPage.verifyPage();
HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
homePage.verifyPage();
return homePage;
}
use of org.mifos.test.acceptance.framework.HomePage in project head by mifos.
the class TaskListTest method verifyLoanOfficerTaskList.
/* Test for loanofficerbranch1
* Meetings: Recur every 1 Week(s) on Thursday
*/
public void verifyLoanOfficerTaskList() throws Exception {
dateTimeUpdaterRemoteTestingService.setDateTime(new DateTime(2041, 1, 1, 13, 0, 0, 0));
LocalDate meetingDate = new LocalDate(2041, 1, 1);
DateTimeFormatter fmt = DateTimeFormat.forPattern("dd-MM-yyyy");
while (meetingDate.getDayOfWeek() != DAY_OF_WEEK) {
meetingDate = meetingDate.plusDays(1);
}
HomePage homePage = navigationHelper.navigateToHomePageAsLogedUser(DEFAULT_LOANOFFICER_USERNAME, DEFAULT_LOANOFFICER_PASSWORD);
if (meetingDate.compareTo(new LocalDate()) != 0) {
homePage.selectTaskListDateOption("value=" + fmt.print(meetingDate));
}
assertTextFoundOnPage(CENTER);
assertTextFoundOnPage(GROUP);
assertTextFoundOnPage(CLIENT);
}
use of org.mifos.test.acceptance.framework.HomePage in project head by mifos.
the class UpdateCustomPropertiesTest method changeLocale.
//http://mifosforge.jira.com/browse/MIFOSTEST-86
@Test
public void changeLocale() {
// Given
propertiesHelper.setLocale("FR", "FR");
// When
HomePage homePage = navigationHelper.navigateToHomePage();
// Then
Assert.assertEquals(homePage.getWelcome(), "Bienvenue, mifos");
// cleanup
propertiesHelper.setLocale("EN", "GB");
}
use of org.mifos.test.acceptance.framework.HomePage in project head by mifos.
the class StandardReportsTest method generateCollectionSheetEntryReport.
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
public void generateCollectionSheetEntryReport() throws Exception {
SubmitFormParameters formParameters = new SubmitFormParameters();
formParameters.setBranch("MyOfficeDHMFT");
formParameters.setLoanOfficer("ALL");
formParameters.setCenter("Default Center");
formParameters.setTransactionDay("23");
formParameters.setTransactionMonth("04");
formParameters.setTransactionYear("2009");
LoginPage loginPage = appLauncher.launchMifos();
HomePage homePage = loginPage.loginSuccessfullyUsingDefaultCredentials();
ReportsPage reportsPage = homePage.navigateToReportsPage();
CollectionSheetReportParametersPage collSheetReportParametersPage = reportsPage.selectCollectionSheetEntryReport();
collSheetReportParametersPage.generateCollectionSheetEntryReport(formParameters);
// TODO: No validation for now. This will simply demonstrate the problem if
// PDF generation is messed up (as it was when the itext library was removed)
// An attempt was made to validate by using the BIRT url to generate the PDF
// but following that url includes parameter dropdown screens before whatever
// call actually generates the PDF
}
use of org.mifos.test.acceptance.framework.HomePage in project head by mifos.
the class ViewReportsTest method loginAndGoToAdminPage.
private AdminPage loginAndGoToAdminPage() {
HomePage homePage = appLauncher.launchMifos().loginSuccessfullyUsingDefaultCredentials();
homePage.verifyPage();
AdminPage adminPage = homePage.navigateToAdminPage();
adminPage.verifyPage();
return adminPage;
}
Aggregations