Search in sources :

Example 1 with ViewLatenessAndDormancyDefinitionPage

use of org.mifos.test.acceptance.framework.admin.ViewLatenessAndDormancyDefinitionPage in project head by mifos.

the class ViewLatenessAndDormancyDefinitionTest method verifyViewLatenessAndDormancyDefinitionPage.

@Test(enabled = true)
public //http://mifosforge.jira.com/browse/MIFOSTEST-705
void verifyViewLatenessAndDormancyDefinitionPage() {
    //When
    ViewLatenessAndDormancyDefinitionPage viewLatenessAndDormancyDefinitionPage = navigationHelper.navigateToAdminPage().navigateToViewLatenessAndDormancyDefinitionPage();
    viewLatenessAndDormancyDefinitionPage.submitWithInvalidData("aa", "bb");
    //Then
    viewLatenessAndDormancyDefinitionPage.verifyIsDormancyErrorDisplayed(true);
    viewLatenessAndDormancyDefinitionPage.verifyIsLatenessErrorDisplayed(true);
    //When
    AdminPage adminPage = viewLatenessAndDormancyDefinitionPage.submitAndNavigateToAdminPage("20", "10");
    viewLatenessAndDormancyDefinitionPage = adminPage.navigateToViewLatenessAndDormancyDefinitionPage();
    //Then
    viewLatenessAndDormancyDefinitionPage.verifyLatenessAndDormancy("20", "10");
    //When
    adminPage = viewLatenessAndDormancyDefinitionPage.submitAndNavigateToAdminPage("10", "30");
    // MIFOS-4774
    adminPage.navigateToViewLatenessAndDormancyDefinitionPage().submitAndNavigateToAdminPage("1234", "4321").navigateToViewLatenessAndDormancyDefinitionPage().submitAndNavigateToAdminPage();
}
Also used : AdminPage(org.mifos.test.acceptance.framework.admin.AdminPage) ViewLatenessAndDormancyDefinitionPage(org.mifos.test.acceptance.framework.admin.ViewLatenessAndDormancyDefinitionPage) Test(org.testng.annotations.Test)

Aggregations

AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)1 ViewLatenessAndDormancyDefinitionPage (org.mifos.test.acceptance.framework.admin.ViewLatenessAndDormancyDefinitionPage)1 Test (org.testng.annotations.Test)1