Search in sources :

Example 6 with InstructorCourseDetailsPage

use of teammates.test.pageobjects.InstructorCourseDetailsPage in project teammates by TEAMMATES.

the class InstructorCoursesPageUiTest method testLinks.

private void testLinks() {
    /* Explanation: We test each of 'view' links and 'enroll' links.
         * 'Delete' is not a link, but an action.
         */
    String courseId = testData.courses.get("CS2104").getId();
    ______TS("view link");
    /* Explanation: When checking links, we check the destination page
         * for some keywords rather than do a full content match.
         */
    InstructorCourseDetailsPage detailsPage = coursesPage.loadViewLink(courseId).verifyIsCorrectPage(courseId);
    coursesPage = detailsPage.goToPreviousPage(InstructorCoursesPage.class);
    ______TS("enroll link");
    InstructorCourseEnrollPage enrollPage = coursesPage.loadEnrollLink(courseId).verifyIsCorrectPage(courseId);
    coursesPage = enrollPage.goToPreviousPage(InstructorCoursesPage.class);
    ______TS("edit link");
    InstructorCourseEditPage editPage = coursesPage.loadEditLink(courseId).verifyIsCorrectPage(courseId);
    coursesPage = editPage.goToPreviousPage(InstructorCoursesPage.class);
}
Also used : InstructorCourseEditPage(teammates.test.pageobjects.InstructorCourseEditPage) InstructorCourseEnrollPage(teammates.test.pageobjects.InstructorCourseEnrollPage) InstructorCourseDetailsPage(teammates.test.pageobjects.InstructorCourseDetailsPage) InstructorCoursesPage(teammates.test.pageobjects.InstructorCoursesPage)

Aggregations

InstructorCourseDetailsPage (teammates.test.pageobjects.InstructorCourseDetailsPage)6 AppUrl (teammates.common.util.AppUrl)3 InstructorCourseEditPage (teammates.test.pageobjects.InstructorCourseEditPage)3 InstructorCourseEnrollPage (teammates.test.pageobjects.InstructorCourseEnrollPage)3 InstructorAttributes (teammates.common.datatransfer.attributes.InstructorAttributes)2 InstructorCoursesPage (teammates.test.pageobjects.InstructorCoursesPage)2 StudentAttributes (teammates.common.datatransfer.attributes.StudentAttributes)1 FieldValidator (teammates.common.util.FieldValidator)1 AdminHomePage (teammates.test.pageobjects.AdminHomePage)1 FeedbackSubmitPage (teammates.test.pageobjects.FeedbackSubmitPage)1 InstructorCourseJoinConfirmationPage (teammates.test.pageobjects.InstructorCourseJoinConfirmationPage)1 InstructorFeedbackSessionsPage (teammates.test.pageobjects.InstructorFeedbackSessionsPage)1 InstructorHomePage (teammates.test.pageobjects.InstructorHomePage)1 InstructorStudentListPage (teammates.test.pageobjects.InstructorStudentListPage)1 StudentCourseDetailsPage (teammates.test.pageobjects.StudentCourseDetailsPage)1 StudentFeedbackResultsPage (teammates.test.pageobjects.StudentFeedbackResultsPage)1 StudentHomePage (teammates.test.pageobjects.StudentHomePage)1 StudentProfilePage (teammates.test.pageobjects.StudentProfilePage)1