Zum Inhalt springen
Skillpedia
Tests26k · #10049

ce-test-browser

Was er macht

Er öffnet die Seiten, die deine Codeänderung berührt, in einem echten Browser, führt Ende-zu-Ende-Prüfungen durch und meldet das Ergebnis für jede Seite. Gedacht ist das für Entwickler, die einen Nachweis wollen, dass eine Änderung im Browser funktioniert.

Wann du ihn nutzt

  • ✓Wenn du eine Webseite geändert hast und sie im Browser prüfen willst.
  • ✓Wenn ein Pull Request vor dem Merge Ergebnisse von Browsertests braucht.
  • ✓Wenn du wissen willst, welche betroffenen Seiten nicht getestet werden konnten und warum.

Link zum Skill

https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-test-browser/SKILL.md

Kopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.

So nutzt du ihn

Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.

Fertige Nachricht zum Einfügen

Nutze diesen Skill, um mir zu helfen: https://github.com/EveryInc/compound-engineering-plugin/blob/main/skills/ce-test-browser/SKILL.md Lies die SKILL.md unter diesem Link und folge ihren Anweisungen für meine Aufgabe.
Soll deine KI Skills wie diesen selbst finden?Installiere den kostenlosen Skillpedia-MCP: eine Zeile, und sie durchsucht vor jeder Aufgabe 15.000+ Skills.In 1 Minute installieren →

Beispielanfrage an deine KI

“Führ Browsertests für die Seiten aus, die mein Branch geändert hat, und sag mir, was fehlschlägt.”

5 neue Skills pro Woche. 1 Minute Lesezeit.

So funktioniert es

Er wählt ein in deiner Umgebung verfügbares Browser-Tool, nutzt deinen laufenden Dev-Server, testet jede betroffene Seite und markiert sie als bestanden, fehlgeschlagen oder übersprungen, jeweils mit Begründung.

Technischer Inhalt (originale SKILL.md)

Originaltext des Autors, auf Englisch, direkt von GitHub.

Browser Test Skill

Run end-to-end browser tests on pages affected by a PR or branch using the best approved browser driver available in the active harness.

Done: the run ends by reporting what it found — either the summary, with every affected route marked Pass, Fail, or Skip and each Skip carrying its reason, or, when a preflight blocker stops testing before any route can be exercised, the blocker and what would clear it. Reaching neither, or dropping a route from the summary because nobody could reach it, is the failure this done condition exists to prevent.

Modes

  • Manual (default): the user controls the dev server. When the fallback driver is agent-browser, ask whether to run headed or headless.
  • Pipeline (mode:pipeline): invoked by LFG or another automated runner. The run is unattended — never block on a question. Read references/pipeline-orchestration.md from this skill's directory and follow it; it overrides port selection (step 4, Determine the dev server port), dev-server startup (step 5, Verify the dev server is running), and visibility prompts (step 6, Set visibility), running the same port script with --free inside the block that starts the server.

Browser Driver Policy

Select the driver before the first browser action:

  1. Prefer a host-native integrated browser. Use a browser-control surface embedded in or directly owned by the active harness when it can navigate local URLs, inspect rendered and interactive state, click/fill/press, capture screenshots, and inspect console errors. A separately configured browser extension or integration is not host-native. Load and follow the selected capability's own instructions before browser work.
  2. Otherwise fall back to agent-browser. Read references/agent-browser-driver.md before running any command.
  3. Do not introduce a third browser stack. Never install or substitute standalone Playwright, Puppeteer, a separately configured browser extension or MCP, or other ad hoc browser automation. A Playwright API exposed inside the selected host-native browser remains host-native; it is not standalone Playwright.

Use one driver for the entire run. A selected host-native driver may fall back to agent-browser only if initialization fails before the first route is tested. After testing begins, do not mix driver sessions, element references, screenshots, or authentication state.

Workflow

Read references/route-and-report.md from this skill's directory before step 3 (Map changed files to routes). It carries the route-mapping patterns, the port and server commands, the per-page checks, the two human-facing prompts, and the summary format.

  1. Select the driver per the policy above and record it. This also requires a git repository with changes to test.
  2. Determine test scope from the argument: a PR number → gh pr view [number] --json files -q '.files[].path'; current or empty → git diff --name-only main...HEAD; a branch name → git diff --name-only main...[branch].
  3. Map changed files to routes and build the list of URLs to test.
  4. Determine the dev server port. scripts/resolve-port.sh resolves it and prints the port alone on stdout: an explicit port argument; else a --port flag in a package.json dev/start script; else PORT= in .env, .env.local, or .env.development; else 3000. Pass an explicit port when the user gave --port N, or when your active project instructions already in context state the dev-server port. Do not grep instruction files for one: prose mentions in docs, examples, and troubleshooting are unreliable and false-positive-prone, while config files and .env are trustworthy. Each mode runs the script in the shell call that needs the port, so no port value has to survive between shell calls or be transcribed out of prose; the reference gives the command. Manual mode uses that port as-is: the user controls their own server, so do not scan for alternatives.
  5. Verify the dev server is running before asking the headed/headless question — a manual run with no server stops here, so asking first would waste the question.
  6. Set visibility, then verify the root. Visibility is independent from unattended execution:
    • Host-native integrated browser: keep its normal integrated surface visible and non-blocking so the user can watch progress when useful. Do not repeatedly steal focus as routes change. This applies in both manual and pipeline modes.
    • **`ag
Häufige Fragen

Braucht er einen laufenden Dev-Server?

Im manuellen Modus steuerst du den Dev-Server selbst. Im automatisierten Modus kann er selbst einen starten.

Kann ich dem Browser beim Testen zusehen?

Mit dem Ausweich-Browser-Tool fragt er, ob du den Browser sichtbar oder verborgen willst.

Was ist, wenn eine Seite nicht erreichbar ist?

Diese Seite wird mit Begründung als übersprungen markiert, damit sie im Bericht nicht verschwindet.

Details

Originalbeschreibung des Autors

Run browser tests for pages affected by the current branch or PR. Use when asked to run or check browser tests for the current change.

repo: EveryInc/compound-engineering-plugin

Beliebtheit

GitHub-Sterne
26k
Platz im Ranking
#10049
Lizenz
MIT
Aktualisiert
2.11.2026

Ist dieser Skill nützlich?

0

Anmelden um abzustimmen.

Kommentare

  • …

Weitere Skills aus diesem Repository

Ähnliche Skills