Skip to content

Commit

Permalink
chore: update course overview helper with page factory
Browse files Browse the repository at this point in the history
  • Loading branch information
UzaeirAzhar committed Sep 28, 2024
1 parent 5c91118 commit d5af27b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import com.microsoft.playwright.BrowserContext;
import com.microsoft.playwright.Page;
import com.playwright.practice.pages.CourseOverviewPage;
import com.playwright.practice.utils.PageFactory;

public class CourseOverviewHelper {
public static void loginAndNavigateToCourseOverview(Page page, BrowserContext context, String url, String email,
Expand All @@ -14,7 +15,7 @@ public static void loginAndNavigateToCourseOverview(Page page, BrowserContext co
}

private static void assertCourseOverviewNavigation(Page page) {
CourseOverviewPage courseOverview = new CourseOverviewPage(page);
CourseOverviewPage courseOverview = PageFactory.getCourseOverviewPage(page);
courseOverview.clickOnCourseOverviewInSideMenu();
courseOverview.assertSearchFieldInCourseViewIsVisible();
}
Expand Down

0 comments on commit d5af27b

Please sign in to comment.