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
- YAML for the common path — navigate, assert text, count elements, fill fields, click, check status/redirects.
- Playwright for the hard path — multi-page workflows, custom waits, API mocks, visual checks stay in normal Playwright specs.
- Thin specs, many fixtures — each
*.smky.spec.jspoints at a YAML root;registerYamlTestsloads recursively and registers one Playwrighttest()per scenario. - 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 & redirects | Conditional branching, retries |
| Text/presence smoke on public pages | Complex multi-tab / download / file upload |
| Simple form fill → click → assert | Custom locators, JS evaluation, network interception |
| Menu/footer copy regressions | Visual snapshots, accessibility audits |
| Role-gated “can open URL” checks | Long workflows better expressed in code |
The root README is the GitHub landing page; this site expands the same shipped contract.