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