solution-testing

Write Playwright E2E tests, smoke tests, and Gherkin BDD feature files for critical user journeys.

1|Updated Mar 18, 2026
One-click install
npx skills add https://github.com/MARUCIE/openclaw-foundry --skill solution-testing-marucie
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: solution-testing
Source: https://github.com/MARUCIE/openclaw-foundry/tree/main/web/public/packs/spellbook-test-engineer/skills/solution-testing
Command: npx skills add https://github.com/MARUCIE/openclaw-foundry --skill solution-testing-marucie

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? End-to-end tests are slow, flaky, and expensive to maintain, and teams often write too many of them or debug failures without screenshots and traces. This Skill provides a complete testing discipline covering Playwright setup, Page Object Model, locator strategy, flakiness prevention, smoke tests, and BDD so critical user journeys are verified reliably from the user's perspective. ## Core Features & Use Cases - Playwright Patterns: Project configuration, Page Object Model, role-based locator priority, and observable-state waiting instead of hardcoded sleeps. - Smoke & API E2E Tests: Post-deployment smoke suites for critical paths plus full API workflow tests covering auth tokens and resource lifecycles. - Flakiness & Test Data Management: Root-cause fixes for flaky tests, quarantine via test.fixme, and API-driven isolated test data setup and teardown. - Use Case: After each deployment, run a tagged @smoke Playwright suite that verifies health endpoints, home page load, and login within minutes, with failure screenshots and traces uploaded as CI artifacts. ## Quick Start Write a Playwright E2E test suite with a Page Object Model for the login and checkout flows, plus a smoke test that runs after every deployment.

Frequently Asked Questions about solution-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write Playwright E2E tests for user journeys?▼

Use the Page Object Model so each page encapsulates its selectors and actions, and keep raw locators out of test files. Prefer getByRole and getByLabel locators, and wait on observable state like toBeVisible instead of fixed timeouts.

How many E2E tests should a project have?▼

Follow the honeycomb model: many unit tests, more integration tests, and few targeted E2E tests. Reserve E2E tests for critical journeys like login, checkout, and core workflows, and cover edge cases at lower levels.

Why are my Playwright tests flaky in CI?▼

Common causes are hardcoded waitForTimeout calls, shared test data across parallel runs, order-dependent tests, and network variability. Replace sleeps with state assertions, generate unique test data per run, and increase CI timeouts in config.

When should I use BDD with Gherkin feature files?▼

Use BDD when product owners, QA, and developers need shared readable test documentation for complex business rules. Skip it for small teams where tickets already capture intent, since step definition overhead outweighs the benefit.

What should a post-deployment smoke test include?▼

Include only checks where failure means the system is unusable: health endpoint returning 200, home page loading, and a successful login. Run it automatically after every deployment and roll back immediately if it fails.

How do I handle a flaky test I cannot fix right away?▼

Quarantine it with test.fixme and link a tracking issue instead of deleting it, which preserves coverage history and intent. Fix and re-enable it within the same sprint to avoid eroding trust in the suite.