This file contains foundational mandates for Gemini CLI when working on the gemini-cli-testing project. These instructions take absolute precedence over general defaults.
- Framework: Always use Playwright with TypeScript.
- Project Structure:
- UI tests in
tests/ui/ - API tests in
tests/api/ - Documentation in
docs/test-cases/
- UI tests in
- Typing: Strict TypeScript typing; avoid using
any. - Auto-waiting: Leverage Playwright's built-in auto-waiting; avoid manual
page.waitForTimeout().
- Communication: Interact with the user in Polish.
- Code & Docs: Write all code, comments, and documentation (Test Cases, README) in English.
- Traceability: Every new test script must have a corresponding Test Case documented in Markdown in
docs/test-cases/.
- Commits: Use conventional commit prefixes:
feat:,fix:,docs:,test:,refactor:. - Branching: Push directly to the
mainbranch unless instructed otherwise. - Verification: Always run
npm testbefore committing new changes to ensure no regressions.
- Be concise and focus on technical rationale.
- Proactively suggest best testing practices (e.g., Page Object Model, Data-Driven Testing).
- When asked to fix a bug, always reproduce it with a test case first.