DocumentationTest AuthoringPlaywright test templates

Playwright test templates

4 min readLast updated 2026-04-19

Start from battle-tested templates for login flows, checkout journeys, form validation, and API testing.

Templates give you a head start on common testing scenarios. Each template includes best-practice selectors, assertions, and error handling.

Available templates

  • Login flow with MFA support
  • E-commerce checkout (guest and registered)
  • Form validation and error states
  • API contract testing with expect
  • File upload and download verification
  • Infinite scroll and pagination
  • Modal and dropdown interactions

Using a template

  1. 1Run checkstudio template:list to see all options
  2. 2Run checkstudio template:use login-flow to scaffold
  3. 3Edit the generated file with your app-specific URLs and selectors
  4. 4Run the test with checkstudio run
checkstudio template:list
checkstudio template:use login-flow --out tests/login.spec.ts
bash

Was this article helpful?

Still have questions?

Our support team is here to help. Reach out directly or search the docs.