Back to Library
UI
Tooltip Validation
Prompt
Generate Playwright test to hover element and validate tooltip text.
Example Code
await page.locator('#icon').hover(); await expect(page.locator('.tooltip')).toBeVisible();Quick Actions
PRO TIP
Paste this prompt as a comment in your .spec.ts file and let Copilot generate the test.