diff --git a/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/llmexperimentation/DUserAccessCalendarTest.java b/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/llmexperimentation/DUserAccessCalendarTest.java index 8540b6c..985954f 100644 --- a/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/llmexperimentation/DUserAccessCalendarTest.java +++ b/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/llmexperimentation/DUserAccessCalendarTest.java @@ -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 classes = calendar.findElements(By.className("calendar-class")); + List classes = calendar.findElements(By.className("cal-day-badge")); assertTrue(classes.size() > 0, "No classes are displayed on the calendar"); for (WebElement calendarClass : classes) {