Przejdź do treści
Biblioteka skilli
Programowanie · Testowanie

agency-web-test-setup

/agency-web-test-setup

Konfiguruje testy E2E stron webowych: deterministyczne smoke w Playwright dla CI oraz agentową kontrolę jakości przez Playwright MCP.

Repozytorium
agency-kit ↗
Licencja
MIT
Ostatnia zmiana repozytorium
11.11.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
2
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
6
Przestarzałość

Brak sygnałów. Repozytorium zmienione 11.11.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Konfiguruje testy E2E stron webowych: deterministyczne smoke w Playwright dla CI oraz agentową kontrolę jakości przez Playwright MCP.

Oryginalny opis (EN)

Portable web E2E setup: Playwright (deterministic CI smoke) + Playwright MCP (local agent QA). Use when the user asks for web testing setup, agentic browser QA, Playwright install, e2e/smoke, or web UI automation on any web git repo (Next.js, React, Vite, static, etc.). Default is BOTH layers unless they pick one. Do NOT use for unit-test-only asks, native mobile Maestro, or non-web projects.

Jak działa

  1. Repo gate
  2. Default offer
  3. Procedure (after agency-project-gateway triage)
  4. Discover (per project)
  5. Files to create/edit (every web app)
  6. Done when
  7. Anti-patterns
  8. Companion skill
  9. Refs
Sekcje z nagłówków SKILL.md, w oryginale · 90 linii, 644 słów
Podgląd SKILL.md
---
name: agency-web-test-setup
description: >
  Portable web E2E setup: Playwright (deterministic CI smoke) + Playwright MCP
  (local agent QA). Use when the user asks for web testing setup, agentic
  browser QA, Playwright install, e2e/smoke, or web UI automation on any web
  git repo (Next.js, React, Vite, static, etc.). Default is BOTH layers unless
  they pick one. Do NOT use for unit-test-only asks, native mobile Maestro, or
  non-web projects.
disable-model-invocation: false
---

# Agency web test setup (Playwright + MCP)

Canonical dual stack for **any** web app repo. Docs: [playwright.dev](https://playwright.dev) · MCP: [getting-started-mcp](https://playwright.dev/docs/getting-started-mcp).

## Repo gate

**Activate** only inside a **git** web project.  
**Skip** home / empty-window / native-mobile-only (use `agency-mobile-test-setup`).

## Default offer

When the user asks for testing / agentic / E2E / automation setup and does not pick:

1. **Playwright MCP** only (local agent QA)
2. **Playwright Test** only (CI smoke)
3. **Both** ← **default**

If they already said “both” / “3” / “full”, implement without re-asking.

## Procedure (after `agency-project-gateway` triage)

1. `move_agent_to_root` to the target repo.
2. Orient: graphify (if present) or narrow grep — discover **package manager**, **dev/start script**, **baseURL**, existing CI.
3. Fill context packet (`agency-context-packet`): Goal = dual smoke+agent QA; Done-when = files below + documented run commands; Non-goals = full suite / page-object framework / multi-browser matrix.
4. Prefer **inline parent implement** (cheap). Spawn `agency-qa-security` / `agency-devops-sre` / `agency-automation-ai-integrations` only if multi-lane.
5. Create files from templates in `reference.md` — **substitute project-specific baseURL / paths**; never copy another product’s URLs.
6. Do **not** hang Playwright on deploy/release workflows — add a **separate** GHA (or doc equivalent).
7. Do **not** silently `npm install` / browser download without user approval; document one-time commands and ask them to run (or use smart-mode approval).
8. Default CI browser = **chromium only**. Add firefox/webkit only when asked.
9. TypeScript-first (`@playwright/test`). Python/.NET/Java only if the repo already uses them.
10. After code edits: `graphify update .` if graphify-out exists.
11. Do not commit unless asked.

## Discover (per project)

| Need | How |
|------|-----|
| Package manager | `pnpm-lock.yaml` / `yarn.lock` / `package-lock.json` / `bun.lock*` |
| Dev / preview URL | `package.json` scripts (`dev`, `start`, `preview`) + env |
| `baseURL` | Local default `http://127.0.0.1:3000` (or Vite 5173) unless repo docs say otherwise |
| Existing Playwright | `playwright.config.*`, `e2e/`, `tests/`, `playwright/` |
| Existing CI | List `.github/workflows/*` — never bolt onto deploy/upload jobs |
| Auth | Prefer storageState fixture later; launch-only smoke first if auth unknown |

## Files to create/edit (every web app)

| Path | Purpose |
|------|---------|
| `playwright.config.ts` | Chromium project, `baseURL`, `webServer` when applicable |
| `e2e/smoke.spec.ts` | Launch/home smoke (or `tests/` if repo already uses it) |
| `e2e/README.md` | Local + CI how-to (short) |
| `.github/workflows/playwright-smoke.yml` | Install browsers + run smoke; **separate** from deploy |
| Root `package.json` | `devDependency` `@playwright/test` + scripts `test:e2e` / `test:e2e:ui` |
| `Agent.md` / `AGENTS.md` / README § testing | 3–5 lines pointing at Playwright + Playwright MCP |

Global (not per-repo): Playwright MCP in `~/.cursor/mcp.json` — see `playwright-mcp` Cursor rule. Do **not** require a project-level MCP copy.

Optional later: auth storageState, more specs, trace-on-retry once smoke is green.

## Done when

- [ ] Playwright smoke exists and documents local run
- [ ] Separate CI workflow (or explicit “manual-only” note if no GHA)
- [ ] Global Playwright MCP called out; user told to reload MCPs if newly added
- [ ] User told one-time installs: `npm/pnpm/yarn add -D @playwright/test` + `npx playwright install --with-deps` (chromium sufficient for smoke)
- [ ] Minimal diffs; no unrelated refactors

## Anti-patterns

- Hardcoding another project’s `baseURL` or auth fixtures
- Putting Playwright into production deploy jobs
- Full regression / visual / multi-browser matrix on day one
- Silent browser downloads without documenting one-time setup
- Using `cursor-ide-browser` as the default E2E stack when Playwright MCP is available
- Skipping gateway on substantive repo setup

## Companion skill

- **Spec authoring (selectors / fixtures / flaky waits):** `agency-playwright-testing`
- **Live agent loops:** Playwright MCP (`user-playwright` in Cursor, `mcp__playwright__*` in Claude Code)
- This skill stays focused on **scaffolding** (config + smoke + CI + MCP pointer).

## Refs

- Templates: same skill folder `reference.md`
- Install: https://playwright.dev/docs/intro
- MCP: https://playwright.dev/docs/getting-started-mcp
- CI: https://playwright.dev/docs/ci-intro
Pliki w paczce (2)
  • SKILL.md 5 KB
  • reference.md 4 KB

Wersje

W bazie nie ma innych skilli o nazwie agency-web-test-setup.

Migawka bazy z 13.11.2026 · wersja paczki c0372ac1a21e (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 3 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90agency-mobile-test-setup
    Konfiguruje testy mobilne E2E: deterministyczne smoke w CI przez Maestro oraz agentowe testy QA przez agent-device.
  • 100agency-playwright-testing
    Pisze i naprawia testy E2E Playwright dla aplikacji webowych: selektory, fixtury, logowanie, czekanie, ślady i konfigurację CI.
  • 100playwright-testing
    Automatyzuje testy UI i E2E z Playwright MCP: sprawdza stronę, robi zrzuty ekranu, uruchamia Playwright i pisze testy przeglądarkowe.
  • 100e2e-playwright-testing
    Pisze testy end-to-end w Playwright dla aplikacji webowych, w tym automatyzację przeglądarki i przebiegi formularzy oraz ścieżek użytkownika.
  • 100run-smoke-tests
    Uruchamia testy smoke w Playwright, debuguje błędy i weryfikuje poprawki przed przeglądową kontrolą w przeglądarce.
  • 100playwright-testing
    Prowadzi ręczne testy QA na żywo w przeglądarce przez serwer Playwright MCP: eksploruje aplikację webową lub wykonuje przypadek testowy, bez generowania kodu testów.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.