[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71C6FV2QYHNDHGJF2Q5VDFQ":3,"skill-same:01M71C6FV2QYHNDHGJF2Q5VDFQ":69},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":36,"linkOnly":37,"markdownContent":38,"markdownBody":39,"frontMatter":40,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":14,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":6,"ownerDescription":47,"updatedAt":48,"install":49,"resources":62},"01M71C6FV2QYHNDHGJF2Q5VDFQ","webapp-testing",null,"Web application testing principles. E2E, Playwright, deep audit strategies.","yqecea\u002Fgem-swarm","yqecea","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F196189405?v=4","01M71C12KWH5QPTE12J69335KF","Yusuf","01M71C12MFS3BRGNE5SSHB4DY9",1,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fyqecea\u002Fgem-swarm\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fdomain\u002Fwebapp-testing\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35],"testing","webapp testing","webapp","application","grep","principles","web","testing principles","playwright","e2e","edit","write","read","audit","strategies","Bash","deep","2026-11-10 10:12:30",false,"---\nname: webapp-testing\ndescription: Web application testing principles. E2E, Playwright, deep audit strategies.\nallowed-tools: Read, Write, Edit, Glob, Grep, Bash\n---\n\n# Web App Testing\n\n> Discover and test everything. Leave no route untested.\n\n## 🔧 Runtime Scripts\n\n**Execute these for automated browser testing:**\n\n| Script | Purpose | Usage |\n|--------|---------|-------|\n| `scripts\u002Fplaywright_runner.py` | Basic browser test | `python scripts\u002Fplaywright_runner.py https:\u002F\u002Fexample.com` |\n| | With screenshot | `python scripts\u002Fplaywright_runner.py \u003Curl> --screenshot` |\n| | Accessibility check | `python scripts\u002Fplaywright_runner.py \u003Curl> --a11y` |\n\n**Requires:** `pip install playwright && playwright install chromium`\n\n---\n\n## 1. Deep Audit Approach\n\n### Discovery First\n\n| Target | How to Find |\n|--------|-------------|\n| Routes | Scan app\u002F, pages\u002F, router files |\n| API endpoints | Grep for HTTP methods |\n| Components | Find component directories |\n| Features | Read documentation |\n\n### Systematic Testing\n\n1. **Map** - List all routes\u002FAPIs\n2. **Scan** - Verify they respond\n3. **Test** - Cover critical paths\n\n---\n\n## 2. Testing Pyramid for Web\n\n```\n        \u002F\\          E2E (Few)\n       \u002F  \\         Critical user flows\n      \u002F----\\\n     \u002F      \\       Integration (Some)\n    \u002F--------\\      API, data flow\n   \u002F          \\\n  \u002F------------\\    Component (Many)\n                    Individual UI pieces\n```\n\n---\n\n## 3. E2E Test Principles\n\n### What to Test\n\n| Priority | Tests |\n|----------|-------|\n| 1 | Happy path user flows |\n| 2 | Authentication flows |\n| 3 | Critical business actions |\n| 4 | Error handling |\n\n### E2E Best Practices\n\n| Practice | Why |\n|----------|-----|\n| Use data-testid | Stable selectors |\n| Wait for elements | Avoid flaky tests |\n| Clean state | Independent tests |\n| Avoid implementation details | Test user behavior |\n\n---\n\n## 4. Playwright Principles\n\n### Core Concepts\n\n| Concept | Use |\n|---------|-----|\n| Page Object Model | Encapsulate page logic |\n| Fixtures | Reusable test setup |\n| Assertions | Built-in auto-wait |\n| Trace Viewer | Debug failures |\n\n### Configuration\n\n| Setting | Recommendation |\n|---------|----------------|\n| Retries | 2 on CI |\n| Trace | on-first-retry |\n| Screenshots | on-failure |\n| Video | retain-on-failure |\n\n---\n\n## 5. Visual Testing\n\n### When to Use\n\n| Scenario | Value |\n|----------|-------|\n| Design system | High |\n| Marketing pages | High |\n| Component library | Medium |\n| Dynamic content | Lower |\n\n### Strategy\n\n- Baseline screenshots\n- Compare on changes\n- Review visual diffs\n- Update intentional changes\n\n---\n\n## 6. API Testing Principles\n\n### Coverage Areas\n\n| Area | Tests |\n|------|-------|\n| Status codes | 200, 400, 404, 500 |\n| Response shape | Matches schema |\n| Error messages | User-friendly |\n| Edge cases | Empty, large, special chars |\n\n---\n\n## 7. Test Organization\n\n### File Structure\n\n```\ntests\u002F\n├── e2e\u002F           # Full user flows\n├── integration\u002F   # API, data\n├── component\u002F     # UI units\n└── fixtures\u002F      # Shared data\n```\n\n### Naming Convention\n\n| Pattern | Example |\n|---------|---------|\n| Feature-based | `login.spec.ts` |\n| Descriptive | `user-can-checkout.spec.ts` |\n\n---\n\n## 8. CI Integration\n\n### Pipeline Steps\n\n1. Install dependencies\n2. Install browsers\n3. Run tests\n4. Upload artifacts (traces, screenshots)\n\n### Parallelization\n\n| Strategy | Use |\n|----------|-----|\n| Per file | Playwright default |\n| Sharding | Large suites |\n| Workers | Multiple browsers |\n\n---\n\n## 9. Anti-Patterns\n\n| ❌ Don't | ✅ Do |\n|----------|-------|\n| Test implementation | Test behavior |\n| Hardcode waits | Use auto-wait |\n| Skip cleanup | Isolate tests |\n| Ignore flaky tests | Fix root cause |\n\n---\n\n> **Remember:** E2E tests are expensive. Use them for critical paths only.\n","# Web App Testing\n\n> Discover and test everything. Leave no route untested.\n\n## 🔧 Runtime Scripts\n\n**Execute these for automated browser testing:**\n\n| Script | Purpose | Usage |\n|--------|---------|-------|\n| `scripts\u002Fplaywright_runner.py` | Basic browser test | `python scripts\u002Fplaywright_runner.py https:\u002F\u002Fexample.com` |\n| | With screenshot | `python scripts\u002Fplaywright_runner.py \u003Curl> --screenshot` |\n| | Accessibility check | `python scripts\u002Fplaywright_runner.py \u003Curl> --a11y` |\n\n**Requires:** `pip install playwright && playwright install chromium`\n\n---\n\n## 1. Deep Audit Approach\n\n### Discovery First\n\n| Target | How to Find |\n|--------|-------------|\n| Routes | Scan app\u002F, pages\u002F, router files |\n| API endpoints | Grep for HTTP methods |\n| Components | Find component directories |\n| Features | Read documentation |\n\n### Systematic Testing\n\n1. **Map** - List all routes\u002FAPIs\n2. **Scan** - Verify they respond\n3. **Test** - Cover critical paths\n\n---\n\n## 2. Testing Pyramid for Web\n\n```\n        \u002F\\          E2E (Few)\n       \u002F  \\         Critical user flows\n      \u002F----\\\n     \u002F      \\       Integration (Some)\n    \u002F--------\\      API, data flow\n   \u002F          \\\n  \u002F------------\\    Component (Many)\n                    Individual UI pieces\n```\n\n---\n\n## 3. E2E Test Principles\n\n### What to Test\n\n| Priority | Tests |\n|----------|-------|\n| 1 | Happy path user flows |\n| 2 | Authentication flows |\n| 3 | Critical business actions |\n| 4 | Error handling |\n\n### E2E Best Practices\n\n| Practice | Why |\n|----------|-----|\n| Use data-testid | Stable selectors |\n| Wait for elements | Avoid flaky tests |\n| Clean state | Independent tests |\n| Avoid implementation details | Test user behavior |\n\n---\n\n## 4. Playwright Principles\n\n### Core Concepts\n\n| Concept | Use |\n|---------|-----|\n| Page Object Model | Encapsulate page logic |\n| Fixtures | Reusable test setup |\n| Assertions | Built-in auto-wait |\n| Trace Viewer | Debug failures |\n\n### Configuration\n\n| Setting | Recommendation |\n|---------|----------------|\n| Retries | 2 on CI |\n| Trace | on-first-retry |\n| Screenshots | on-failure |\n| Video | retain-on-failure |\n\n---\n\n## 5. Visual Testing\n\n### When to Use\n\n| Scenario | Value |\n|----------|-------|\n| Design system | High |\n| Marketing pages | High |\n| Component library | Medium |\n| Dynamic content | Lower |\n\n### Strategy\n\n- Baseline screenshots\n- Compare on changes\n- Review visual diffs\n- Update intentional changes\n\n---\n\n## 6. API Testing Principles\n\n### Coverage Areas\n\n| Area | Tests |\n|------|-------|\n| Status codes | 200, 400, 404, 500 |\n| Response shape | Matches schema |\n| Error messages | User-friendly |\n| Edge cases | Empty, large, special chars |\n\n---\n\n## 7. Test Organization\n\n### File Structure\n\n```\ntests\u002F\n├── e2e\u002F           # Full user flows\n├── integration\u002F   # API, data\n├── component\u002F     # UI units\n└── fixtures\u002F      # Shared data\n```\n\n### Naming Convention\n\n| Pattern | Example |\n|---------|---------|\n| Feature-based | `login.spec.ts` |\n| Descriptive | `user-can-checkout.spec.ts` |\n\n---\n\n## 8. CI Integration\n\n### Pipeline Steps\n\n1. Install dependencies\n2. Install browsers\n3. Run tests\n4. Upload artifacts (traces, screenshots)\n\n### Parallelization\n\n| Strategy | Use |\n|----------|-----|\n| Per file | Playwright default |\n| Sharding | Large suites |\n| Workers | Multiple browsers |\n\n---\n\n## 9. Anti-Patterns\n\n| ❌ Don't | ✅ Do |\n|----------|-------|\n| Test implementation | Test behavior |\n| Hardcode waits | Use auto-wait |\n| Skip cleanup | Isolate tests |\n| Ignore flaky tests | Fix root cause |\n\n---\n\n> **Remember:** E2E tests are expensive. Use them for critical paths only.\n",{"name":5,"description":7,"allowed-tools":41},"Read, Write, Edit, Glob, Grep, Bash","main","923c514d4d5e15bbfd65ec7eaf949a997679aa3e","src\u002Fskills\u002Fdomain\u002Fwebapp-testing","https:\u002F\u002Fgithub.com\u002Fyqecea\u002Fgem-swarm","https:\u002F\u002Fgithub.com\u002Fyqecea","15 y.o Data Science,Student","2026-04-26 20:00:27",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add yqecea\u002Fgem-swarm --skill webapp-testing",{"tool":55,"command":56},"bunx","bunx skills add yqecea\u002Fgem-swarm --skill webapp-testing",{"tool":58,"command":59},"pnpm","pnpm dlx skills add yqecea\u002Fgem-swarm --skill webapp-testing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fyqecea\u002Fgem-swarm\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fdomain\u002Fwebapp-testing\u002FSKILL.md",true,[63],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"scripts\u002Fplaywright_runner.py","SCRIPT","脚本",6531,"https:\u002F\u002Fgithub.com\u002Fyqecea\u002Fgem-swarm\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fdomain\u002Fwebapp-testing\u002Fscripts\u002Fplaywright_runner.py",[70,84,98,109,121,136],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":36},"01M71C74XVPP23ST10E8MYJZA0","validation","Cross-cutting validation methodology for verifying phase outputs and project integrity","https:\u002F\u002Fgithub.com\u002Fyqecea\u002Fgem-swarm\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fshared\u002Fvalidation\u002FSKILL.md",[],[72,77,78,79,80,81,82,83],"validation methodology","for","project","outputs","phase","methodology","integrity",{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":36},"01M71C72PTKRV481M975R3QDDE","session-management","Manages orchestration session state, tracking, and resumption","https:\u002F\u002Fgithub.com\u002Fyqecea\u002Fgem-swarm\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fshared\u002Fsession-management\u002FSKILL.md",[],[91,92,93,94,95,96,97],"session management","session","management","session state","orchestration","state","tracking",{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":36},"01M71C6ZY1EGM4SGVYT4B2HHD7","implementation-planning","Generates detailed implementation plans from finalized designs","https:\u002F\u002Fgithub.com\u002Fyqecea\u002Fgem-swarm\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fshared\u002Fimplementation-planning\u002FSKILL.md",[],[105,106,107,108],"planning","implementation","implementation planning","plans",{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":36},"01M71C6XQVGMDFJ50BP5SBDS76","execution","Phase execution methodology for orchestration workflows with error handling and completion protocols","https:\u002F\u002Fgithub.com\u002Fyqecea\u002Fgem-swarm\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fshared\u002Fexecution\u002FSKILL.md",[],[111,78,82,116,117,95,81,118,119,120],"error","workflows","protocols","error handling","with",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":36},"01M71C6VY8APWMNK1XEJ3WP7A2","design-dialogue","Guides structured design conversations for complex engineering tasks","https:\u002F\u002Fgithub.com\u002Fyqecea\u002Fgem-swarm\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fshared\u002Fdesign-dialogue\u002FSKILL.md",[],[128,129,130,131,132,78,133,134,135],"dialogue","design","design dialogue","guides","conversations","tasks","engineering","structured",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":36},"01M71C6R4RJWG3S2R26778TPD8","delegation","Agent delegation best practices for constructing effective subagent prompts with proper scoping","https:\u002F\u002Fgithub.com\u002Fyqecea\u002Fgem-swarm\u002Fblob\u002Fmain\u002Fsrc\u002Fskills\u002Fshared\u002Fdelegation\u002FSKILL.md",[],[138,143,144,78,145,120,146],"subagent","scoping","best practices","prompts"]