kcd-testing

Write and review Playwright integration tests against a live PostgreSQL database.

Updated Mar 1, 2026
One-click install
npx skills add https://github.com/SirPedr/saga --skill kcd-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kcd-testing
Source: https://github.com/SirPedr/saga/tree/main/.agents/skills/kcd-testing
Command: npx skills add https://github.com/SirPedr/saga --skill kcd-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @playwright/test, pg, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill enables the creation and review of integration and end-to-end tests for the project, ensuring application behavior is validated through real user interactions with a live PostgreSQL database, eliminating the need for mocks.

Core Features & Use Cases

  • Full-Stack Testing: Write tests using Playwright that interact with a real browser, server, and PostgreSQL database.
  • Behavior-Driven Development: Focus on testing user-observable behavior rather than implementation details.
  • Ad-hoc Browser Automation: Perform quick checks, take screenshots, or automate browser interactions for immediate feedback.
  • Use Case: After implementing a new user registration flow, use this Skill to write Playwright tests that simulate a user signing up, verifying that the data is correctly stored in the database and the user is redirected to the dashboard.

Quick Start

Use the kcd-testing skill to write Playwright tests for the user login flow.

Frequently Asked Questions about kcd-testing

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

FAQPage Schema
How do I write full-stack integration tests with Playwright and a real PostgreSQL database?

Full-stack integration tests using Playwright and a real PostgreSQL database simulate user interactions end-to-end without mocks. You write tests validating observable behavior, ensuring actions like form submissions correctly update the live database and redirect users appropriately.

What is the best way to test user authentication flows without mocking the database?

Testing user authentication without mocks involves running Playwright against a live PostgreSQL database. This approach validates real user sign-ups and logins by checking actual database records and observable redirections rather than relying on simulated implementation details.

Does Playwright support testing responsive design and CRUD operations simultaneously?

Playwright supports testing responsive design and CRUD operations simultaneously by automating real browser interactions. You can validate form inputs, verify data persistence in PostgreSQL, and check UI layout across different viewport sizes within a single end-to-end test suite.

Why should I use a real database instead of mocks for end-to-end testing?

Using a real database instead of mocks for end-to-end testing ensures your tests validate actual data persistence and full system integration. This behavior-driven approach tests observable user actions against a live PostgreSQL instance, catching integration issues mocks often miss.

Can I use Playwright for ad-hoc browser automation and quick screenshots?

You can use Playwright for ad-hoc browser automation and quick screenshots to gain immediate visual feedback. Beyond structured test suites, it provides utilities to script common browser interaction patterns, perform rapid checks, and capture page states during development.

How do I validate form validation errors using end-to-end tests?

Validating form validation errors using end-to-end tests involves using Playwright to simulate incorrect user inputs and assert that observable error messages appear. This behavior-driven method checks the actual UI response against invalid data without probing internal code logic.