Search in sources :

Example 6 with QuestionDetailPage

use of org.mifos.test.acceptance.framework.questionnaire.QuestionDetailPage in project head by mifos.

the class QuestionTest method testViewQuestionDetail.

private void testViewQuestionDetail(String type, int numericMin, int numericMax, List<Choice> choices) {
    QuestionDetailPage questionDetailPage = viewAllQuestionsPage.navigateToQuestionDetail(title + type);
    questionDetailPage.verifyPage();
    questionDetailPage.verifyQuestionTitle(type, title);
    questionDetailPage.assertForChoices(type, choices);
    questionDetailPage.assertForNumericDetails(type, numericMin, numericMax);
    viewAllQuestionsPage = questionDetailPage.navigateToViewAllQuestionsPage();
}
Also used : QuestionDetailPage(org.mifos.test.acceptance.framework.questionnaire.QuestionDetailPage)

Aggregations

QuestionDetailPage (org.mifos.test.acceptance.framework.questionnaire.QuestionDetailPage)6 AdminPage (org.mifos.test.acceptance.framework.admin.AdminPage)4 EditQuestionPage (org.mifos.test.acceptance.framework.questionnaire.EditQuestionPage)4 ViewAllQuestionsPage (org.mifos.test.acceptance.framework.questionnaire.ViewAllQuestionsPage)4 ArrayList (java.util.ArrayList)1 Choice (org.mifos.test.acceptance.framework.questionnaire.Choice)1 CreateQuestionPage (org.mifos.test.acceptance.framework.questionnaire.CreateQuestionPage)1 CreateQuestionParameters (org.mifos.test.acceptance.framework.questionnaire.CreateQuestionParameters)1 Test (org.testng.annotations.Test)1