Cypress WordPress Test Utilities

JSON →
library 1.0.0 ·javascript
verified May 27, 2026

This package, `cypress-wp-test-utils`, provides a comprehensive collection of custom Cypress commands specifically designed for robust end-to-end testing of WordPress applications. It streamlines interactions with the WordPress admin area and the Gutenberg editor, offering high-level commands such as `loginUser`, `createNewPost`, `insertBlock`, `activatePlugin`, and `clickBlockToolbarButton`. Inspired by `@wordpress/e2e-test-utils` (which targets Puppeteer), this library serves a similar purpose for Cypress users, abstracting complex WordPress-specific DOM interactions. The current stable version is 1.0.0. The project maintains a regular release cadence, primarily focusing on compatibility with new major versions of Cypress and WordPress, alongside bug fixes and new feature introductions. Its key differentiator is providing a focused, high-level API for common WordPress testing scenarios directly within a Cypress test suite, significantly reducing boilerplate and improving test readability.

total hits 20
actors 6 distinct systems
last hit 3d ago AhrefsBot
ByteDance
8
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1

top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · 🇩🇪 Germany · 🇫🇷 France