E2E Testing
Playwright and Cypress patterns, selectors, assertions, API mocking, visual testing, and CI/CD
Install
npx skills add cosmicstack-labs/mercury-agent-skills --skill e2e-testinggit clone --depth 1 https://github.com/cosmicstack-labs/mercury-agent-skills.git /tmp/mercury-agent-skills
mkdir -p ~/.claude/skills
cp -r /tmp/mercury-agent-skills/categories/testing-qa/e2e-testing ~/.claude/skills/e2e-testingPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# E2E Testing
End-to-end testing with Playwright and Cypress.
## Tool Choice
| Factor | Playwright | Cypress |
|--------|-----------|---------|
| Language | JS/TS, Python, C#, Java | JS/TS only |
| Browser support | Chromium, Firefox, WebKit | Chromium, Firefox, WebKit |
| Iframe support | Native | Limited |
| Network mocking | Route API | intercept() |
| Parallel execution | Built-in | Dashboard required |
## Playwright Patterns
### Selector Strategy (Priority Order)
1. `getByRole()` — best for accessibility
2. `getByText()` — for text content
3. `getByTestId()` — for complex components
4. `getByLabel()` — for form fields
5. `locator(CSS)` — last resort
### Test Structure
```typescript
test.describe('Checkout Flow', () => {
test('completes purchase with valid card', async ({ page }) => {
await page.goto('/products');
await page.getByText('Add to Cart').first().click();
await page.getByRole('button', { name: 'Checkout' }).click();
await page.getByLabel('Card Number').fill('4242424242424242');
await page.getByRole('button', { name: 'Pay' }).click();
await expect(page.getByText('Thank you')).toBeVisible();
});
});
```
## Visual Testing
- Use `await expect(page).toHaveScreenshot()`
- Maintain baseline screenshots in version control
- Run visual tests on CI with 1% threshold
- Use percy.io or Chromatic for cloud-based visual review
## CI IntegrationDetails
- Skill name
e2e-testing- Repository
- cosmicstack-labs/mercury-agent-skills
- Path
categories/testing-qa/e2e-testing/SKILL.md- License
- MIT
- Repo updated
- 25 August 2026
FAQ
What does the E2E Testing skill do?
Playwright and Cypress patterns, selectors, assertions, API mocking, visual testing, and CI/CD
How do I install the E2E Testing skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add cosmicstack-labs/mercury-agent-skills --skill e2e-testing. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is E2E Testing popular?
It lives in cosmicstack-labs/mercury-agent-skills, which has 492 GitHub stars and 68 forks.
Related skills
Accessibility
492cosmicstack-labs/mercury-agent-skills
Achieve and maintain WCAG compliance through inclusive design practices, proper ARIA usage, and comprehensive testing methodologies.
Accessibility Testing
492cosmicstack-labs/mercury-agent-skills
WCAG 2.1/2.2 audit, axe, Lighthouse, manual testing, screen reader testing, and remediation
Agent Audit Logging
492cosmicstack-labs/mercury-agent-skills
Implement comprehensive audit logging and reporting for multi-agent systems. Covers event capture, structured logging, traceability, compliance reporting, forensic analysis, and real-time monitoring dashboards for agent actions and decisions.
Performance Testing
492cosmicstack-labs/mercury-agent-skills
Load, stress, spike testing with k6/Locust, bottleneck analysis, and performance test automation
API Testing
492cosmicstack-labs/mercury-agent-skills
REST and GraphQL testing, Postman/Insomnia patterns, contract testing, schema validation, and monitoring
Test Strategy
492cosmicstack-labs/mercury-agent-skills
Test pyramid, risk-based testing, test planning, coverage metrics, and SDLC integration
Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.