Skip to main content

Introduction

smky lets you write concise YAML scenarios for smoke and acceptance checks, while keeping full Playwright *.spec.js available for complex flows. It is not a full testing framework — YAML covers the common path; Playwright owns the hard path.

Design goals​

  1. YAML for the common path — navigate, assert text, count elements, fill fields, click, check status/redirects.
  2. Playwright for the hard path — multi-page workflows, custom waits, API mocks, visual checks stay in normal Playwright specs.
  3. Thin specs, many fixtures — each *.smky.spec.js points at a YAML root; registerYamlTests loads recursively and registers one Playwright test() per scenario.
  4. Host hooks stay optional — auth, fixtures, and {…} helpers are injected by the app; core YAML stays framework-agnostic.

When to use YAML vs Playwright​

Use YAML (smky)Use *.spec.js
Status codes & redirectsConditional branching, retries
Text/presence smoke on public pagesComplex multi-tab / download / file upload
Simple form fill → click → assertCustom locators, JS evaluation, network interception
Menu/footer copy regressionsVisual snapshots, accessibility audits
Role-gated “can open URL” checksLong workflows better expressed in code

The root README is the GitHub landing page; this site expands the same shipped contract.

Is smky right for this scenario?​

How a scenario runs​