skills/webapp-testing/SKILL.md
Web application testing strategies including Playwright, Cypress, component testing, visual regression, and accessibility testing.
npx skillsauth add melikhanmutlu/web_ar webapp-testingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
"Testing leads to failure, and failure leads to understanding." -- Burt Rutan
npm init playwright@latestplaywright.config.ts with multiple projects for cross-browser testingwebServer config to auto-start your dev server before testsbaseURL to avoid repeating full URLs in every test// Use descriptive test names that explain the user journey
test('user can add item to cart and proceed to checkout', async ({ page }) => {
await page.goto('/products');
await page.getByRole('button', { name: 'Add to Cart' }).first().click();
await page.getByRole('link', { name: 'Cart' }).click();
await expect(page.getByText('1 item')).toBeVisible();
await page.getByRole('button', { name: 'Checkout' }).click();
await expect(page).toHaveURL(/.*checkout/);
});
getByRole, getByLabel, getByText) over CSS selectorsdata-testid only when semantic locators are insufficientpage.waitForTimeout); use expect with auto-waitingtest.step() for grouping related actions in a single testtrace: 'on-first-retry' for debugging failuresrequest fixture for backend API testing without a browserpage.route() to mock API responses or simulate errorscontext.newPage() for workflows spanning multiple tabssetInputFiles and waitForEvent('download')npm install cypress --save-devcypress.config.ts for E2E and component testingcy.intercept() for API mocking and network controlbaseUrl in config to simplify cy.visit() callscy.wait(ms); use cy.intercept() with aliases and cy.wait('@alias')cy.session() for caching authentication across tests| Factor | Playwright | Cypress | |--------|-----------|---------| | Multi-browser | Chromium, Firefox, WebKit | Chrome, Firefox, Edge | | Multi-tab support | Yes | No | | Language | JS/TS, Python, Java, C# | JS/TS only | | Architecture | Out-of-process | In-process (same event loop) | | Parallel execution | Built-in workers | Requires CI parallelization | | Component testing | Experimental | Mature | | Best for | Cross-browser E2E, CI | Developer experience, debugging |
@testing-library/react) for component testsuserEvent over fireEvent for realistic interaction simulationawait expect(page).toHaveScreenshot() with threshold@axe-core/playwright or cypress-axecheckA11y() on every page in E2E tests to catch regressionsprefers-reduced-motion)--shard flag)retries: 2 but investigate root causestrace and Cypress's video to debug intermittent failurestools
# AI Marketing Suite — Main Orchestrator You are a comprehensive AI marketing analysis and content generation system for Claude Code. You help entrepreneurs, agency builders, and solopreneurs analyze websites, generate marketing content, audit funnels, create client proposals, and build marketing strategies — all from the command line. ## Command Reference | Command | Description | Output | |---------|-------------|--------| | `/market audit <url>` | Full marketing audit (parallel subagents)
testing
# Social Media Content Calendar & Generation You are the social media engine for `/market social <topic/url>`. You generate a complete 30-day content calendar with platform-specific posts, hooks, hashtags, and a content repurposing strategy. Every post is ready to publish or hand to a social media manager. ## When This Skill Is Invoked The user runs `/market social <topic/url>`. If a URL is provided, fetch the site to understand the brand, audience, and content themes. If a topic is provided,
development
# SEO Content Audit ## Skill Purpose Perform a comprehensive SEO audit of a webpage or website, covering on-page SEO, content quality (E-E-A-T), keyword analysis, technical SEO, and content strategy. This skill combines automated analysis via `scripts/analyze_page.py` with expert-level manual review to produce an actionable SEO audit document. ## When to Use - User provides a URL and asks for SEO analysis, audit, or recommendations - User wants to improve organic search rankings and traffic -
tools
# Marketing Report Generator (Markdown Format) ## Skill Purpose Generate a comprehensive, professionally formatted marketing report in Markdown. This skill compiles data from all previous audit and analysis results into a single, client-ready document with scores, findings, recommendations, and a prioritized action plan with revenue impact estimates. ## When to Use - User wants a full marketing report for a client or their own business - User has completed one or more audit skills and wants a