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-automation

SKILL.md

Test Automation

Environment (this machine)

  • Python venv: ~/qa-agent/.venv/bin/python — has pytest, playwright, requests, locust.
  • Dispatcher: qa CLI (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-testid to the app if none exist and you own the code.
  • Waits: never use hard sleep(). Use Playwright's auto-waiting or explicit wait_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.parametrize instead 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=short while iterating; full traceback + -ra summary 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:

  1. Run it 5–10x locally (pytest --count=10 or a loop) to confirm flakiness vs. one-off environment issue.
  2. Check for hard waits/timing assumptions, unseeded random data, shared state between tests, animation transitions not waited on.
  3. 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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mejbaurbahar/fagun/test-automation/badge)](https://verified-skill.com/skills/mejbaurbahar/fagun/test-automation)

Something wrong with this skill or its page? Tell us.