---
description: Praman SAP UI5 Test Automation Rules
globs:
  - "tests/**/*.spec.ts"
  - "tests/**/*.test.ts"
alwaysApply: false
---

# Praman + Playwright SAP Test Automation

**Primary skill reference**: `node_modules/playwright-praman/skills/playwright-praman-sap-testing/SKILL.md`

Read this file before generating any SAP UI5 test. SAP pages are hybrid — use Praman fixtures for UI5 controls, Playwright native for login forms, Web Components, and plain DOM.

## Mandatory Import

```typescript
import { test, expect } from 'playwright-praman';
```

## Core Rules

1. UI5 controls → Praman fixtures (`ui5.control()` + proxy methods)
2. Non-UI5 → Playwright native (`page.locator()`); NEVER native for UI5 (`page.click('#__...')`, `.sapM...`)
3. Input pattern: `setValue()` + `fireChange()` + `waitForUI5()` always together
4. Auth in seed file ONLY — never in test body
5. Include TSDoc compliance header in every generated test

## Quick Reference

`node_modules/playwright-praman/skills/playwright-praman-sap-testing/ai-quick-reference.md`
