Skip to content
Skillpedia
Testing8.2k Β· #12544

webapp-testing

What it does

This skill guides your AI through testing a web application from start to finish. It is for developers who want every route and key user flow checked.

When to use it

  • βœ“When you want to check the pages and APIs of a web app for problems.
  • βœ“When you need automated browser tests for critical user flows, such as sign-in.
  • βœ“When you want an accessibility check on a site before launch.

Skill link

https://github.com/vudovn/ag-kit/blob/main/.agents/skills/webapp-testing/SKILL.md

Copy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.

How to use

The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.

Ready-to-paste message

Use this skill to help me: https://github.com/vudovn/ag-kit/blob/main/.agents/skills/webapp-testing/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

Example of what to ask your AI

β€œTest my web app's main pages and sign-in flow, take screenshots, and check accessibility.”

5 new skills a week. 1 minute to read.

How it works

The skill maps the app's routes and API endpoints, checks that they respond, then runs browser tests on the key paths. It can also take a screenshot or run an accessibility check.

Technical content (original SKILL.md)

Original text by the author, straight from GitHub.

Web App Testing

Discover and test everything. Leave no route untested.

πŸ”§ Runtime Scripts

Execute these for automated browser testing:

Script Purpose Usage
scripts/playwright_runner.py Basic browser test python scripts/playwright_runner.py https://example.com
With screenshot python scripts/playwright_runner.py <url> --screenshot
Accessibility check python scripts/playwright_runner.py <url> --a11y

Requires: pip install playwright && playwright install chromium


1. Deep Audit Approach

Discovery First

Target How to Find
Routes Scan app/, pages/, router files
API endpoints Grep for HTTP methods
Components Find component directories
Features Read documentation

Systematic Testing

  1. Map - List all routes/APIs
  2. Scan - Verify they respond
  3. Test - Cover critical paths

2. Testing Pyramid for Web

        /\          E2E (Few)
       /  \         Critical user flows
      /----\
     /      \       Integration (Some)
    /--------\      API, data flow
   /          \
  /------------\    Component (Many)
                    Individual UI pieces

3. E2E Test Principles

What to Test

Priority Tests
1 Happy path user flows
2 Authentication flows
3 Critical business actions
4 Error handling

E2E Best Practices

Practice Why
Use data-testid Stable selectors
Wait for elements Avoid flaky tests
Clean state Independent tests
Avoid implementation details Test user behavior

4. Playwright Principles

Core Concepts

Concept Use
Page Object Model Encapsulate page logic
Fixtures Reusable test setup
Assertions Built-in auto-wait
Trace Viewer Debug failures

Configuration

Setting Recommendation
Retries 2 on CI
Trace on-first-retry
Screenshots on-failure
Video retain-on-failure

5. Visual Testing

When to Use

Scenario Value
Design system High
Marketing pages High
Component library Medium
Dynamic content Lower

Strategy

  • Baseline screenshots
  • Compare on changes
  • Review visual diffs
  • Update intentional changes

6. API Testing Principles

Coverage Areas

Area Tests
Status codes 200, 400, 404, 500
Response shape Matches schema
Error messages User-friendly
Edge cases Empty, large, special chars

7. Test Organization

File Structure

tests/
β”œβ”€β”€ e2e/           # Full user flows
β”œβ”€β”€ integration/   # API, data
β”œβ”€β”€ component/     # UI units
└── fixtures/      # Shared data

Naming Convention

Pattern Example
Feature-based login.spec.ts
Descriptive user-can-checkout.spec.ts

8. CI Integration

Pipeline Steps

  1. Install dependencies
  2. Install browsers
  3. Run tests
  4. Upload artifacts (traces, screenshots)

Parallelization

Strategy Use
Per file Playwright default
Sharding Large suites
Workers Multiple browsers

9. Anti-Patterns

❌ Don't βœ… Do
Test implementation Test behavior
Hardcode waits Use auto-wait
Skip cleanup Isolate tests
Ignore flaky tests Fix root cause

Remember: E2E tests are expensive. Use them for critical paths only.

FAQ

What do I need installed to run the browser tests?

The skill notes you need Python with Playwright and its Chromium browser.

Does it test every route?

It aims to discover and test all routes, starting with the critical user paths.

Can it check accessibility?

Yes. The runner script has an accessibility check option.

Details

Original description by the author

Web application testing principles. E2E, Playwright, deep audit strategies.

repo: vudovn/ag-kit

Popularity

GitHub stars
8.2k
Ranking position
#12544
License
MIT
Updated
10/18/2026

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills