Search in sources :

Example 1 with SavingsCloseAccountPage

use of org.mifos.test.acceptance.framework.savings.SavingsCloseAccountPage in project head by mifos.

the class SavingsAccountHelper method closeSavingsAccount.

public SavingsAccountDetailPage closeSavingsAccount(String savingsAccountID, String notes) {
    NavigationHelper helper = new NavigationHelper(selenium);
    SavingsAccountDetailPage savingsAccountDetailPage = helper.navigateToSavingsAccountDetailPage(savingsAccountID);
    savingsAccountDetailPage.verifyPage();
    SavingsCloseAccountPage savingsCloseAccountPage = savingsAccountDetailPage.navigateToCloseAccount();
    savingsCloseAccountPage.verifyPage();
    savingsAccountDetailPage = savingsCloseAccountPage.closeSavingsAccount(notes);
    savingsAccountDetailPage.verifyPage();
    return savingsAccountDetailPage;
}
Also used : SavingsCloseAccountPage(org.mifos.test.acceptance.framework.savings.SavingsCloseAccountPage) SavingsAccountDetailPage(org.mifos.test.acceptance.framework.savings.SavingsAccountDetailPage)

Example 2 with SavingsCloseAccountPage

use of org.mifos.test.acceptance.framework.savings.SavingsCloseAccountPage in project head by mifos.

the class SavingsAccountHelper method fillQuestionGroupsDuringClosingSavingsAccount.

public SavingsAccountDetailPage fillQuestionGroupsDuringClosingSavingsAccount(String savingsId, QuestionResponseParameters questionResponseParameters, String[] questionsExist) {
    NavigationHelper helper = new NavigationHelper(selenium);
    SavingsAccountDetailPage savingsAccountDetailPage = helper.navigateToSavingsAccountDetailPage(savingsId);
    savingsAccountDetailPage.verifyPage();
    SavingsCloseAccountPage savingsCloseAccountPage = savingsAccountDetailPage.navigateToCloseAccount();
    savingsCloseAccountPage.verifyPage();
    CaptureQuestionResponse captureQuestionResponse = savingsCloseAccountPage.submitAndNavigateToQuestionnairePage("Closing Savings with QG");
    captureQuestionResponse.verifyQuestionsExists(questionsExist);
    captureQuestionResponse.populateAnswers(questionResponseParameters);
    captureQuestionResponse.navigateToNextPageSavingsAccountClosing();
    savingsAccountDetailPage = savingsCloseAccountPage.clickCloseButton();
    savingsAccountDetailPage.verifyPage();
    return savingsAccountDetailPage;
}
Also used : SavingsCloseAccountPage(org.mifos.test.acceptance.framework.savings.SavingsCloseAccountPage) CaptureQuestionResponse(org.mifos.test.acceptance.framework.questionnaire.CaptureQuestionResponse) SavingsAccountDetailPage(org.mifos.test.acceptance.framework.savings.SavingsAccountDetailPage)

Aggregations

SavingsAccountDetailPage (org.mifos.test.acceptance.framework.savings.SavingsAccountDetailPage)2 SavingsCloseAccountPage (org.mifos.test.acceptance.framework.savings.SavingsCloseAccountPage)2 CaptureQuestionResponse (org.mifos.test.acceptance.framework.questionnaire.CaptureQuestionResponse)1