Search in sources :

Example 1 with CreateMeetingPage

use of org.mifos.test.acceptance.framework.center.CreateMeetingPage in project head by mifos.

the class CreateGroupEnterDataPage method submitAndGotoCreateGroupPreviewDataPage.

public CreateCenterPreviewDataPage submitAndGotoCreateGroupPreviewDataPage(SubmitFormParameters parameters) {
    typeTextIfNotEmpty("createnewcenter.input.name", parameters.getCenterName());
    selectIfNotEmpty("loanOfficerId", parameters.getLoanOfficer());
    selenium.click("createnewcenter.link.meetingSchedule");
    waitForPageToLoad();
    CreateMeetingPage meetingPage = new CreateMeetingPage(selenium);
    meetingPage.submitAndGotoCreateCenterEnterDataPage(parameters.getMeeting());
    selenium.click("createnewcenter.button.preview");
    waitForPageToLoad();
    return new CreateCenterPreviewDataPage(selenium);
}
Also used : CreateCenterPreviewDataPage(org.mifos.test.acceptance.framework.center.CreateCenterPreviewDataPage) CreateMeetingPage(org.mifos.test.acceptance.framework.center.CreateMeetingPage)

Example 2 with CreateMeetingPage

use of org.mifos.test.acceptance.framework.center.CreateMeetingPage in project head by mifos.

the class UpdateCustomPropertiesTest method removeThursdayFromWorkingDays.

//http://mifosforge.jira.com/browse/MIFOSTEST-204
@SuppressWarnings("PMD.SignatureDeclareThrowsException")
@Test
public void removeThursdayFromWorkingDays() throws Exception {
    String workingDays = "Monday,Tuesday,Wednesday,Thursday,Friday,Saturday";
    propertiesHelper.setWorkingDays(workingDays);
    //When
    CreateCenterEnterDataPage createCenterEnterDataPage = navigationHelper.navigateToCreateCenterEnterDataPage("MyOfficeDHMFT");
    CreateMeetingPage createMeetingPage = createCenterEnterDataPage.navigateToCreateMeetingPage();
    createMeetingPage.verifyWorkingDays(workingDays);
    CreateClientEnterMfiDataPage createClientEnterMfiDataPage = navigationHelper.navigateToCreateClientEnterMfiDataPage("MyOfficeDHMFT");
    createMeetingPage = createClientEnterMfiDataPage.navigateToCreateMeetingPage();
    createMeetingPage.verifyWorkingDays(workingDays);
    workingDays = "Monday,Tuesday,Wednesday,Friday,Saturday";
    propertiesHelper.setWorkingDays(workingDays);
    //Then
    createCenterEnterDataPage = navigationHelper.navigateToCreateCenterEnterDataPage("MyOfficeDHMFT");
    createMeetingPage = createCenterEnterDataPage.navigateToCreateMeetingPage();
    createMeetingPage.verifyWorkingDays(workingDays);
    createClientEnterMfiDataPage = navigationHelper.navigateToCreateClientEnterMfiDataPage("MyOfficeDHMFT");
    createMeetingPage = createClientEnterMfiDataPage.navigateToCreateMeetingPage();
    createMeetingPage.verifyWorkingDays(workingDays);
    String groupName = "testGroup";
    CreateCenterEnterDataPage.SubmitFormParameters formParameters = new CreateCenterEnterDataPage.SubmitFormParameters();
    formParameters = setCenterParameters();
    centerTestHelper.createCenter(formParameters, "MyOfficeDHMFT");
    CreateGroupSubmitParameters groupParams = new CreateGroupSubmitParameters();
    groupParams.setGroupName(groupName);
    GroupTestHelper groupTestHelper = new GroupTestHelper(selenium);
    groupTestHelper.createNewGroupPartialApplication("Default Center", groupParams);
    clientTestHelper.createClientAndVerify("loan officer", "MyOfficeDHMFT");
    // restore original configuration
    propertiesHelper.setWorkingDays("Monday,Tuesday,Wednesday,Thursday,Friday,Saturday");
}
Also used : CreateCenterEnterDataPage(org.mifos.test.acceptance.framework.center.CreateCenterEnterDataPage) GroupTestHelper(org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper) CreateGroupSubmitParameters(org.mifos.test.acceptance.framework.group.CreateGroupEntryPage.CreateGroupSubmitParameters) CreateMeetingPage(org.mifos.test.acceptance.framework.center.CreateMeetingPage) SubmitFormParameters(org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage.SubmitFormParameters) CreateClientEnterMfiDataPage(org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage) Test(org.testng.annotations.Test)

Aggregations

CreateMeetingPage (org.mifos.test.acceptance.framework.center.CreateMeetingPage)2 CreateCenterEnterDataPage (org.mifos.test.acceptance.framework.center.CreateCenterEnterDataPage)1 CreateCenterPreviewDataPage (org.mifos.test.acceptance.framework.center.CreateCenterPreviewDataPage)1 CreateClientEnterMfiDataPage (org.mifos.test.acceptance.framework.client.CreateClientEnterMfiDataPage)1 CreateGroupSubmitParameters (org.mifos.test.acceptance.framework.group.CreateGroupEntryPage.CreateGroupSubmitParameters)1 SubmitFormParameters (org.mifos.test.acceptance.framework.loanproduct.DefineNewLoanProductPage.SubmitFormParameters)1 GroupTestHelper (org.mifos.test.acceptance.framework.testhelpers.GroupTestHelper)1 Test (org.testng.annotations.Test)1