--- name: playwright-smoke-gen description: Generates high-level smoke tests by exploring a running web application. --- # Playwright Smoke Test Instructions When this skill is active, follow these rules: 1. **Explore First**: Use the Playwright MCP `snapshot` tool to understand the page structure before writing code. 2. **Web-First Assertions**: Always use `expect(locator).toBeVisible()` or `toBeEnabled()`. 3. **Naming Convention**: Save tests in `tests/smoke/[feature].spec.ts`. 4. **Setup/Teardown**: Use `test.beforeEach` for repeated actions like navigating to the base URL. 5. **No Hardcoded Secrets**: If a login is required, use `process.env.TEST_USER` placeholders.