Search in sources :

Example 1 with CreateHolidayConfirmationPage

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();
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) CreateHolidayConfirmationPage(org.mifos.test.acceptance.framework.holiday.CreateHolidayConfirmationPage) CreateHolidayEntryPage(org.mifos.test.acceptance.framework.holiday.CreateHolidayEntryPage)

Example 2 with CreateHolidayConfirmationPage

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.");
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) CreateHolidayConfirmationPage(org.mifos.test.acceptance.framework.holiday.CreateHolidayConfirmationPage) CreateHolidayEntryPage(org.mifos.test.acceptance.framework.holiday.CreateHolidayEntryPage) CreateHolidaySubmitParameters(org.mifos.test.acceptance.framework.holiday.CreateHolidayEntryPage.CreateHolidaySubmitParameters) DateTime(org.joda.time.DateTime) Test(org.testng.annotations.Test)

Example 3 with CreateHolidayConfirmationPage

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();
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) CreateHolidayConfirmationPage(org.mifos.test.acceptance.framework.holiday.CreateHolidayConfirmationPage) CreateHolidayEntryPage(org.mifos.test.acceptance.framework.holiday.CreateHolidayEntryPage)

Aggregations

AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)3 CreateHolidayConfirmationPage (org.mifos.test.acceptance.framework.holiday.CreateHolidayConfirmationPage)3 CreateHolidayEntryPage (org.mifos.test.acceptance.framework.holiday.CreateHolidayEntryPage)3 DateTime (org.joda.time.DateTime)1 CreateHolidaySubmitParameters (org.mifos.test.acceptance.framework.holiday.CreateHolidayEntryPage.CreateHolidaySubmitParameters)1 Test (org.testng.annotations.Test)1