From 34c79e582ce7c3a753ba0ab98623bf9091fa72c0 Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 30 Jul 2024 13:22:42 +0200 Subject: [PATCH] accessCoursesAndViewClassesFS4oTest passing! --- .../test/llmexperimentation/BViewCourseClassesTest.java | 9 +++++---- 1 file changed, 5 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 b1c2b6f..7e4ee1d 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 @@ -131,17 +131,18 @@ void accessCoursesAndViewClassesFS4oTest(String mail, String password, String ro // Access the first course WebElement course = CourseNavigationUtilities.getCourseByName(driver, courses.get(0)); course.findElement(By.cssSelector(".course-title")).click(); - Wait.notTooMuch(driver).until(ExpectedConditions.visibilityOfElementLocated(By.id("course-classes"))); + CourseNavigationUtilities.go2Tab(driver, SESSION_ICON); + Wait.notTooMuch(driver).until(ExpectedConditions.visibilityOfElementLocated(By.className("session-data"))); // Verify classes are ordered by date - List classes = driver.findElements(By.cssSelector(".class-item")); + List classes = driver.findElements(By.className("session-data")); assertTrue(classes.size() > 0, "No classes found in the course"); // Check if classes are ordered by date boolean isOrderedByDate = true; for (int i = 1; i < classes.size(); i++) { - String previousDate = classes.get(i - 1).findElement(By.cssSelector(".class-date")).getText(); - String currentDate = classes.get(i).findElement(By.cssSelector(".class-date")).getText(); + String previousDate = classes.get(i - 1).findElement(By.className("session-datetime")).getText(); + String currentDate = classes.get(i).findElement(By.className("session-datetime")).getText(); if (previousDate.compareTo(currentDate) > 0) { isOrderedByDate = false; break;