use of org.mifos.test.acceptance.framework.holiday.CreateHolidayConfirmationPage in project head by mifos.
the class NoDBUnitAdditionalHolidayTest method createHoliday.
private void createHoliday(final CreateHolidayEntryPage.CreateHolidaySubmitParameters params) {
logOut();
AdminPage adminPage = loginAndNavigateToAdminPage();
adminPage.verifyPage();
CreateHolidayEntryPage createHolidayEntryPage = adminPage.navigateToDefineHolidayPage();
CreateHolidayConfirmationPage confirmationPage = createHolidayEntryPage.submitAndNavigateToHolidayConfirmationPage(params);
confirmationPage.submitAndNavigateToViewHolidaysPage();
}
use of org.mifos.test.acceptance.framework.holiday.CreateHolidayConfirmationPage in project head by mifos.
the class HolidayTest method createHoliday.
// one of the dependent methods throws Exception
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test(enabled = true)
public void createHoliday() throws Exception {
//Given
dateTimeUpdaterRemoteTestingService.setDateTime(new DateTime(2010, 1, 1, 13, 0, 0, 0));
AdminPage adminPage = loginAndNavigateToAdminPage();
adminPage.verifyPage();
CreateHolidayEntryPage createHolidayEntryPage = adminPage.navigateToDefineHolidayPage();
CreateHolidaySubmitParameters params = this.getHolidayParameters();
CreateHolidayConfirmationPage confirmationPage = createHolidayEntryPage.submitAndNavigateToHolidayConfirmationPage(params);
confirmationPage.submitAndNavigateToViewHolidaysPage();
// try to create second holiday with the same date
createHolidayEntryPage = adminPage.navigateToDefineHolidayPage();
params.setName("Test Holiday 2");
confirmationPage = createHolidayEntryPage.submitAndNavigateToHolidayConfirmationPage(params);
assertTextFoundOnPage("Holiday with the same date already exists:", "Text about duplicated holidays was not found.");
}
use of org.mifos.test.acceptance.framework.holiday.CreateHolidayConfirmationPage in project head by mifos.
the class HolidayTest method createHolidayForInstallments.
private void createHolidayForInstallments(CreateHolidaySubmitParameters params) {
AdminPage adminPage = loginAndNavigateToAdminPage();
adminPage.verifyPage();
CreateHolidayEntryPage createHolidayEntryPage = adminPage.navigateToDefineHolidayPage();
CreateHolidayConfirmationPage confirmationPage = createHolidayEntryPage.submitAndNavigateToHolidayConfirmationPage(params);
confirmationPage.submitAndNavigateToViewHolidaysPage();
}
Aggregations