mejbaurbahar/fagun/test-automation
Claude Code and agent skill by mejbaurbahar/fagun
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Use when writing, structuring, or debugging automated tests — Playwright/Selenium E2E suites, pytest test design, page object models, CI test integration, and deciding what's worth automating.
Install
npx vskill@latest install mejbaurbahar/fagun/test-automationSKILL.md
Test Automation
Environment (this machine)
- Python venv:
~/qa-agent/.venv/bin/python— has pytest, playwright, requests, locust. - Dispatcher:
qaCLI (qa test,qa smoke,qa regression,qa security,qa report). - Chrome MCP tools are available for live-browser automation/inspection alongside scripted Playwright.
What to automate (and what not to)
Automate:
- Regression-prone flows run repeatedly (login, checkout, core CRUD).
- Anything that gates a release (smoke suite).
- API contract checks — cheap to write, fast to run, high signal.
Don't automate (or automate last):
- One-off exploratory checks.
- Highly visual/subjective UI polish — use screenshots + manual review instead.
- Flows still actively changing week to week (automation will just be a maintenance drag).
Playwright test structure
- Page Object Model: one class per page/component encapsulating locators + actions. Tests read like user stories, not selector soup.
- Locators: prefer role/text/testid locators over CSS/XPath — they survive markup churn. Add
data-testidto the app if none exist and you own the code. - Waits: never use hard
sleep(). Use Playwright's auto-waiting or explicitwait_for_selector/wait_for_load_state("networkidle"). - Isolation: each test should set up its own data (via API/fixtures) and not depend on execution order or another test's leftover state.
- Assertions: assert on the outcome (DB state, API response, final DOM state), not intermediate loading states.
pytest conventions
- One fixture per external dependency (auth session, seeded user, API client) — compose via fixture injection, not copy-paste setup.
- Parametrize equivalence-class/boundary cases with
@pytest.mark.parametrizeinstead of near-duplicate test functions. - Mark slow/E2E tests (
@pytest.mark.e2e) separately from fast unit/API tests so CI can run tiers independently. - Use
pytest -x --tb=shortwhile iterating; full traceback +-rasummary for CI runs.
Flaky test triage
A test that fails intermittently is a bug in the test (or a real race condition) — don't just retry-until-green:
- Run it 5–10x locally (
pytest --count=10or a loop) to confirm flakiness vs. one-off environment issue. - Check for hard waits/timing assumptions, unseeded random data, shared state between tests, animation transitions not waited on.
- If it's revealing a real race condition in the app, that's a product bug — report it, don't just harden the test to hide it.
CI integration
- Fail the build on any Blocker/Critical-severity assertion failure (see [[bug-reporting]] severity scale).
- Keep smoke suite under a few minutes; push full regression to a separate longer-running job.
- Persist screenshots/traces/videos on failure (
~/qa-agent/reports/) — a failing assertion without evidence wastes the next debugging session.
Load/perf scripts
For scripted load testing use locust from the same venv — see [[performance-testing]] for methodology.
Security
- Security scanPassed, 95 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 repositoryCheckingskills/test-automation/SKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 3
Stars and forks are for the whole GitHub repository, not this skill alone. 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/mejbaurbahar/fagun/test-automation)