कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

playwright-testing

kjaylee द्वारा

Web & Frontend Development
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Test web applications and games using Playwright on MiniPC.

विवरण

यह स्किल क्या करती है

Runs Playwright browser automation on a MiniPC node using headless Chromium. Handles web app and game QA, screenshot capture, DOM inspection, and console log collection. Executes via nodes.run or browser.proxy rather than the local machine.

Running tests on a dedicated MiniPC node keeps browser execution off the development machine and avoids display dependency issues.

इसे कब इस्तेमाल करें

  • Verifying a game loads and renders its canvas correctly
  • Capturing screenshots of a web app at specific states
  • Checking for JavaScript console errors during page interaction
  • Automating click sequences to test UI flows
  • Confirming score or state changes after user input

उदाहरण वर्कफ़्लो

इनपुट

User asks: test that the game at localhost:9877 loads and the canvas is visible

एजेंट
  1. 1

    Navigate to http://localhost:9877/game.html on MiniPC via browser.proxy or nodes.run

  2. 2

    Wait for networkidle state to ensure JS has finished executing

  3. 3

    Locate the canvas element and assert it is visible

  4. 4

    Click the canvas to trigger game interaction

  5. 5

    Take a screenshot and capture any console errors

आउटपुट

Screenshot saved to /tmp/game-test.png confirming canvas renders; console error list returned

इंस्टॉलेशन

clawhub install kjaylee/playwright-testing

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक