webapp-testing

Installation
SKILL.md

Testing web apps with Playwright

To exercise a web application, write a Playwright script and run it from a code step. Install once with pip install playwright then playwright install chromium (or the npm equivalent), and always launch Chromium headless.

from playwright.sync_api import sync_playwright

with sync_playwright() as p:
    browser = p.chromium.launch(headless=True)
    page = browser.new_page()
    page.goto("http://localhost:5173")
    page.wait_for_load_state("networkidle")  # CRITICAL on dynamic apps: wait for JS to run
    # ... interact and assert ...
    browser.close()

Make sure the app under test is already running and reachable (start its dev server in an earlier step, or point at a deployed URL) before the script runs.

Reconnaissance, then action

Installs
1
Repository
tines/skills
First Seen
Today
webapp-testing — tines/skills