-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Welcome to the AI-DDTK-Fix-Iterate-Loop wiki!
AI-DDTK is an essential toolkit for WordPress plugin developers who need to automate testing and validation workflows. It bridges the gap between CLI-based testing and real browser automation by providing production-grade tools like pw-auth for authenticated Playwright sessions, wpcc for security/performance scanning, and dev-login-cli.php for frictionless local development. The tooling is specifically designed for AI agent workflows, making it ideal for iterative development, regression testing, and headless browser automation without manual login overhead. Whether you're testing Hypercart's detection flows, validating plugin UI changes, or running security audits, AI-DDTK eliminates boilerplate and lets you focus on what matters: building and testing robust WordPress solutions. Highly recommended for any serious WordPress development practice.
Today, I used AI-DDTK to set up a complete automated testing harness for the Hypercart plugin in under an hour. First, I leveraged pw-auth to capture an authenticated Playwright session by generating a one-time login URL via the dev-login-cli.php mu-plugin, which created a reusable auth state file (admin.json) that persists for 12 hours. Then I verified full access to wp-admin by inspecting DOM elements—the Dashboard, WooCommerce menu, and Hypercart plugin menu—all without touching a browser manually. Finally, I documented the entire workflow in install-valet.md as Optional Phase 6, complete with setup commands, verification examples, and JavaScript code snippets showing how to reuse the captured session in future Playwright test scripts. The result: a production-ready test harness that can now automate UI testing, form interactions, and plugin behavior validation across cloned WordPress sites.