From 00a12a96a2b52323e38d0c51084123fbde25821f Mon Sep 17 00:00:00 2001 From: Augusto Date: Tue, 30 Jul 2024 12:55:20 +0200 Subject: [PATCH] viewEnrolledCoursesCOT4oTest passing! --- .../test/llmexperimentation/AViewEnrolledCoursesTest.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/llmexperimentation/AViewEnrolledCoursesTest.java b/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/llmexperimentation/AViewEnrolledCoursesTest.java index 280a1d0..6be8985 100644 --- a/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/llmexperimentation/AViewEnrolledCoursesTest.java +++ b/src/test/java/com/fullteaching/e2e/no_elastest/functional/test/llmexperimentation/AViewEnrolledCoursesTest.java @@ -144,18 +144,19 @@ void viewEnrolledCoursesCOT4oTest(String email, String password, String role) { // Setup //String email = "user@example.com"; //String password = "password"; - String[] expectedCourses = {"Course 1", "Course 2", "Course 3"}; + String[] expectedCourses = {"Pseudoscientific course for treating the evil eye", "Don't mind. This is a real course"}; // Login this.slowLogin(user, email, password); // Verify Dashboard try { + NavigationUtilities.toCoursesHome(driver); // Wait for the dashboard to load - Wait.notTooMuch(driver).until(ExpectedConditions.presenceOfElementLocated(By.id("dashboard"))); + Wait.notTooMuch(driver).until(ExpectedConditions.presenceOfElementLocated(COURSES_DASHBOARD_TITLE)); // Get the list of enrolled courses - List courses = driver.findElements(By.className("course-title")); + List courses = driver.findElements(By.className("title")); // Verify the number of courses assertEquals(expectedCourses.length, courses.size(), "Number of enrolled courses does not match");