Cypress WP Utils
Utilities library for WordPress E2E testing in the Cypress environment
★ 24stars
8forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/10up/cypress-wp-utils/archive/refs/heads/develop.zipFrom the readme
Cypress Utilities for WordPress
Utilities library for WordPress E2E testing in the Cypress environment.
Prerequisites
This library requires Cypress. Use @10up/cypress-wp-setup to set up Cypress automatically, including this library. If running tests against WordPress 6.3, you'll probably need to set chromeWebSecurity: false in your Cypress config file. This allows Cypress to properly interact with the iframed Block Editor.
Installation
Usage
Import the libary in support/index.js file:
Documentation for commands can be found at https://10up.github.io/cypress-wp-utils/.
IntelliSense and code completion for Cypress commands
Add a tsconfig.json file into the cypress folder to enable code completion for both Cypress built-in commands and commands from this library:
Adding a new command
This project uses hygen to scaffold new commands to reduce the effort of manually importing and registering new commands:
Install the library locally
Test against every WordPress major release
Every incoming pull request will automatically run tests against:
- our current minimum supported WordPress version, 5.7
- WordPress latest release
- current WordPress future release
To run
Read the full README on GitHub →
Releases
| Tag | Published |
|---|---|
| 0.7.2 | Sep 2, 2026 |
| 0.7.1 | Aug 26, 2026 |
| 0.7.0 | Aug 20, 2026 |
| 0.6.0 | Apr 15, 2025 |
| 0.5.0 | Mar 18, 2025 |
| 0.4.0 | Jul 15, 2024 |
| 0.3.0 | Apr 10, 2024 |
| 0.2.0 | Aug 30, 2023 |
| 0.1.0 | Mar 8, 2023 |
These releases are tags only. The author does not attach a packaged zip, so there are no download counts to report.