Skip to content

Commit

Permalink
userAccessCoursesAndViewClassesCOT4oMiniTest passing!
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocristian committed Jul 30, 2024
1 parent 303a3b1 commit 74ec4ad
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,11 @@ void userAccessCoursesAndViewClassesCOT4oMiniTest(String mail, String password,
String courseName = enrolledCourses.get(0); // Access the first course
WebElement courseElement = CourseNavigationUtilities.getCourseByName(driver, courseName);
Click.element(driver, courseElement);
//Wait.notTooMuch(driver).until(ExpectedConditions.visibilityOfElementLocated(By.id(COURSE_PAGE_ID)));

// Step 5: View classes within the course TO-DO
//List<WebElement> classes = CourseNavigationUtilities.getClassesList(driver);
//assertFalse(classes.isEmpty(), "The course should have classes displayed.");
// Step 5: View classes within the course
CourseNavigationUtilities.go2Tab(driver, SESSION_ICON);
List<WebElement> classes = driver.findElements(By.className("session-data"));
assertFalse(classes.isEmpty(), "The course should have classes displayed.");
// Optionally, check if classes are ordered by date
// (Assuming there's a method to verify order)
//assertTrue(CourseNavigationUtilities.areClassesOrderedByDate(classes), "Classes should be ordered by date.");
Expand Down

0 comments on commit 74ec4ad

Please sign in to comment.