スキル一覧に戻る
insoln

webapp-testing

by insoln

1🍴 0📅 2026年1月11日
GitHubで見るManusで実行

SKILL.md


name: webapp-testing description: Toolkit for interacting with and testing local web applications using Playwright. Use when verifying frontend behavior (Vite/React UI), reproducing UI bugs, or building minimal E2E/smoke scripts. license: Complete terms in LICENSE.txt

Web Application Testing (Playwright)

Use this skill to create small, purpose-built Playwright scripts for verifying the frontend.

When to use

  • Smoke testing the React/Vite UI after changes
  • Reproducing UI regressions (selectors, rendering, API polling)
  • Capturing screenshots and browser console logs
  1. Ensure the app is running (typically via dev compose):
    • docker compose -f infra/docker-compose.dev.yml up -d
    • Frontend: http://localhost:5173
  2. Use reconnaissance-then-action:
    • Navigate
    • Wait for a stable load state
    • Inspect DOM / take a screenshot
    • Then implement precise actions/assertions

Note:

  • This repo doesn’t vendor Playwright; install it in your chosen environment per Playwright’s official docs.

Minimal Playwright script (Python)

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")

    page.screenshot(path="/tmp/ui.png", full_page=True)

    # Example: print console logs (optional)
    # page.on("console", lambda msg: print(msg.type, msg.text))

    browser.close()

Common pitfalls

  • Don’t inspect the DOM before networkidle on dynamic apps.
  • Prefer stable selectors (role=, text=, test IDs) over brittle CSS chains.

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です