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();
}
Aggregations