Skip to content

Commit

Permalink
viewEnrolledCoursesFS4oTest passing!
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocristian committed Jul 30, 2024
1 parent f694c32 commit a9f803d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,8 @@ void viewEnrolledCoursesFS4oTest(String mail, String password, String role) {
}

// Step 3: System displays a list of courses the user is enrolled in
Wait.notTooMuch(driver).until(ExpectedConditions.visibilityOfElementLocated(By.id("courses-list")));
List<WebElement> courses = driver.findElements(By.className("course-item"));
Wait.notTooMuch(driver).until(ExpectedConditions.visibilityOfElementLocated(By.id("course-list")));
List<WebElement> courses = driver.findElements(By.className("course-list-item"));

// Expected Output: The dashboard shows a list of courses the user is enrolled in
assertTrue(courses.size() > 0, "No enrolled courses found for the user");
Expand Down

0 comments on commit a9f803d

Please sign in to comment.