13 RECIPES · 4 FRAMEWORKS · COPY · PASTE · RUN
Copy-paste-ready test recipes for Playwright, Selenium, Cypress, and WebdriverIO. Every recipe is verified against a known-good fixture set so the selectors stay accurate as the app evolves.
Run @axe-core/playwright against the home and PDP, fail on any serious or critical violation, and surface offending DOM nodes in the report.
A copy-paste-ready Playwright test that walks the QA Shop guest cart flow from PDP to the checkout auth gate, with stable testids and locator auto-waiting.
An end-to-end Playwright test of the QA Shop public REST API — list products, fetch one by slug, and assert the contract holds without rendering a single page.
Reuse a Playwright storageState fixture to enter QA Shop pre-logged-in, add a product, walk the wizard through shipping → review → payment, and assert the order-confirmation page.
A Playwright spec that walks the QA Shop guest checkout flow from PDP through cart, auth gate, address, payment, and review to the tokenized confirmation page.
A copy-paste-ready Playwright test that signs into QA Shop using accessible label selectors, asserts the post-login redirect, and stops at the authenticated home.
Run an end-to-end test against an iPhone-15 viewport using Playwright's device descriptor and assert the mobile drawer hamburger replaces the desktop nav.
Intercept the PDP reviews fetch with page.route, return a deterministic fixture, and assert the mocked review renders. Demonstrates client-side fetch interception without a server.
Pin the PDP layout against pixel drift using Playwright's built-in screenshot assertions, with a deterministic mask for the cart-count badge.
A Java + Selenium 4 example that logs into QA Shop using accessible-attribute selectors — works on JUnit 5 with WebDriverManager.
A copy-paste-ready Selenium 4 Python script that walks the QA Shop guest cart flow using explicit waits and stable testids.