ishwormali/habbitpoint/patrol-e2e-testing
Claude Code and agent skill by ishwormali/habbitpoint
- community
Checking that the SKILL.md file is still in the repository.
Generates and maintains end-to-end tests for Flutter apps using Patrol. Use when adding E2E coverage for new features, regression tests for UI bugs, or testing native interactions (permissions, system dialogs, deep links)
Install
npx vskill@latest install ishwormali/habbitpoint/patrol-e2e-testingSKILL.md
The same SKILL.md was published earlier as ishwormali/habbitpoint/patrol-e2e-testing.
Patrol E2E Testing Skill
This skill defines how to design, implement, and run end-to-end (E2E) tests using Patrol 4.x in Flutter projects.
It focuses on:
- Covering new feature flows with deterministic UI tests
- Converting reproducible UI bugs into regression tests
- Handling native OS interactions
- Running tests locally and in CI using correct Patrol CLI commands
When to Use
Use this skill when:
- A new screen or user flow must be covered with E2E tests.
- A feature interacts with native components (permissions, notifications, system dialogs).
- A UI bug should be captured as a regression test.
- Cross-platform behavior (Android / iOS / Web) must be validated.
Setup
For installation and project initialization, follow the official documentation:
https://patrol.leancode.co/documentation#setup
Key Patrol conventions:
patrolis added as a dev dependency.- Tests live in
patrol_test/. - Test files must end with
_test.dart. - Tests are executed with
patrol test.
How to use this skill
Follow the steps below when implementing or updating Patrol tests.
1. Identify the user journey
Break the feature into:
- Actions: taps, scrolls, input, navigation, deep links.
- Observable outcomes: visible text, screen changes, enabled buttons, dialogs.
Rules:
- One test per primary (happy-path) journey.
- Separate tests for critical edge cases.
- Avoid combining unrelated flows in a single test.
2. Structure the Patrol test
Basic Patrol structure:
Key concepts:
- Use
patrolTest()instead oftestWidgets(). $is the Patrol tester.- Use
$(#keyName)to find widgets byKey. - Use explicit wait conditions (e.g.,
waitUntilVisible).
3. Handle native dialogs
For OS-level permission dialogs:
Use native automation only when required by the feature.
4. Selector & interaction quick reference
Finding widgets:
Tapping:
Entering text:
Scrolling:
Native interactions:
5. Running Patrol tests
Run all tests:
Run a specific file with live reload (development mode):
Run a specific file:
Run on web:
Headless web (CI):
Filter by tags:
Output requirements when this skill is used
When applied, this skill must produce:
- Patrol test(s) covering the specified feature.
- Any required widget key additions.
- Exact
patrol testcommand(s) to execute locally. - Notes explaining stabilization decisions.
Quality bar
A valid Patrol test must be:
- Deterministic (no arbitrary delays)
- Readable
- Minimal but complete
- Secret-safe (no hardcoded credentials)
- CI-ready
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.skills/patrol-e2e-testing/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ishwormali/habbitpoint/patrol-e2e-testing)