From 74ec4adda5bd90b66f491eeddde51939760e0e38 Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 30 Jul 2024 15:08:46 +0200 Subject: [PATCH] userAccessCoursesAndViewClassesCOT4oMiniTest passing! --- .../test/llmexperimentation/BViewCourseClassesTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/llmexperimentation/BViewCourseClassesTest.java b/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/llmexperimentation/BViewCourseClassesTest.java index 017a28b..2ae5ad2 100644 --- a/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/llmexperimentation/BViewCourseClassesTest.java +++ b/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/llmexperimentation/BViewCourseClassesTest.java @@ -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 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 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.");