thesoftwarehouse/copilot-collections/tsh-e2e-testing

Claude Code and agent skill by thesoftwarehouse/copilot-collections

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

E2E testing patterns, verification procedures, and CI readiness checklists using Playwright. Use for writing, debugging, or reviewing end-to-end tests, fixing flaky tests, creating Page Objects, mocking external APIs.

Install

npx vskill@latest install thesoftwarehouse/copilot-collections/tsh-e2e-testing

SKILL.md

E2E Testing Patterns & Practices

Page Object Pattern

typescript
export class FeaturePage {
constructor(readonly page: Page) {}
get submitBtn() {
return this.page.getByRole('button', { name: 'Submit' });
}
async navigate() { await this.page.goto('/feature'); }
}

Test Structure

typescript
test('should [behavior] when [condition]', async ({ page }) => {
const id = `test-${Date.now()}-${test.info().parallelIndex}`;
// Arrange → Act → Assert
});

Mocking (external APIs only)

typescript
await page.route('**/api/external/**', route => route.fulfill({ status: 200, body: '{}' }));

Verification Loop

RUN → FAIL? → DEBUG (browser_snapshot) → FIX → REPEAT
RuleLimit
Max per test5 iterations → test.fixme()
Max per suite15 iterations → stop
Flaky detection3 pass/fail mix → investigate
Stability3+ consecutive passes required
App bugMark test.fixme('BUG: desc')
Error Recovery
ErrorAction
TimeoutIncrease once → check selector → check if element renders
Element not foundAlternative locator → check DOM → verify page loaded
NetworkRetry → consider mock → verify backend
FlakyExplicit waits → check race conditions → run 5x
App bugMark test.fixme('BUG: desc') - test is skipped; CI usually still passes unless skipped tests fail the build

CI Readiness Checklist

  • [ ] Passes headless: npx playwright test --headed=false
  • [ ] Uses process.env.BASE_URL
  • [ ] No hardcoded credentials
  • [ ] Explicit viewport

Quick Reference

Always: accessible locators, unique test data, 3+ passes, mock external APIs Never: waitForTimeout(), CSS selectors, test interdependencies, hardcoded creds

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
266
Repository forks
18
7-day trend score
28

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/thesoftwarehouse/copilot-collections/tsh-e2e-testing/badge)](https://verified-skill.com/skills/thesoftwarehouse/copilot-collections/tsh-e2e-testing)

Something wrong with this skill or its page? Tell us.