You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
review.prompt=Review the following Java TestNG test class for correctness, best practices, and possible improvements. Provide a concise summary and suggestions.\n\n
Generate a complete, compilable Java TestNG test class using Playwright for Java.
2
+
Package: {packageName}
3
+
Class: {className}
4
+
MUST include:
5
+
- All required imports (Playwright, TestNG, ConfigurationManager, etc).
6
+
- A @BeforeClass setUp() method that launches Playwright, a Chromium browser in headless mode, and creates a Page. Store Playwright, Browser, and Page as fields.
7
+
- A @Test method that:
8
+
- Reads weburl, username, and password using ConfigurationManager.getBundle().getPropertyValue('weburl'), etc.
9
+
- Navigates to the weburl.
10
+
- Fills the username and password fields and clicks the login button (use generic selectors if not specified).
11
+
- Asserts that the dashboard is visible after login (e.g., page.isVisible('text=Dashboard')).
12
+
- A @AfterClass tearDown() method that closes the browser and Playwright.
0 commit comments