Skip to content

Commit

Permalink
userCanAccessAndViewCalendarCOT4oTest passing!
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocristian committed Jul 30, 2024
1 parent c54f301 commit 6b8e432
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ void userCanAccessAndViewCalendarCOT4oTest(String mail, String password, String

try {
// Navigate to the calendar page
//NavigationUtilities.toCalendarPage(driver);
Wait.notTooMuch(driver).until(ExpectedConditions.visibilityOfElementLocated(By.id("calendar")));
NavigationUtilities.toCoursesHome(driver);
Wait.notTooMuch(driver).until(ExpectedConditions.visibilityOfElementLocated(By.className("calendar-div")));

// Verify that the calendar is displayed
WebElement calendar = driver.findElement(By.id("calendar"));
WebElement calendar = driver.findElement(By.className("calendar-div"));
assertTrue(calendar.isDisplayed(), "Calendar is not displayed");

// Verify that the calendar displays all the user's classes
List<WebElement> classes = calendar.findElements(By.className("calendar-class"));
List<WebElement> classes = calendar.findElements(By.className("cal-day-badge"));
assertTrue(classes.size() > 0, "No classes are displayed on the calendar");

for (WebElement calendarClass : classes) {
Expand Down

0 comments on commit 6b8e432

Please sign in to comment.