orbit-block-edit-test

Automate Gutenberg block editor testing with Playwright.

2|1|Updated Apr 20, 2026
One-click install
npx skills add https://github.com/adityaarsharma/orbit --skill orbit-block-edit-test
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orbit-block-edit-test
Source: https://github.com/adityaarsharma/orbit/tree/main/skills/orbit-block-edit-test
Command: npx skills add https://github.com/adityaarsharma/orbit --skill orbit-block-edit-test

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires playwright, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the testing of the editor-time user experience for Gutenberg blocks, ensuring a seamless and bug-free editing process.

Core Features & Use Cases

  • Automated Testing: Run tests for block insertion, attribute editing, toolbar functionality, transformations, undo/redo, and inner block rendering.
  • Use Case: When adding custom InspectorControls to a block or when you need to validate the editor experience, this Skill can be used to ensure that all features work as expected.

Quick Start

Run the orbit-block-edit-test skill to execute editor-time tests for a block in your plugin by running the following command:

PLUGIN_SLUG=my-plugin npx playwright test --project=block-edit

Frequently Asked Questions about orbit-block-edit-test

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

FAQPage Schema
How do I automate Gutenberg block editor experience testing with Playwright?

Automating Gutenberg block editor experience testing with Playwright involves running targeted tests for block insertion, attribute editing, toolbar functionality, transformations, undo/redo, and inner block rendering. You execute these tests using the Playwright test runner configured for the block edit project.

What Gutenberg block interactions can I validate using automated testing?

Automated testing validates block insertion, attribute editing, toolbar functionality, transformations, undo/redo sequences, and inner block rendering. This ensures custom InspectorControls and core editor features work seamlessly without manual verification.

Do I need Playwright installed to test Gutenberg block editor functionality?

Yes, Playwright is a required dependency to execute automated editor-time tests for Gutenberg blocks. You also need the appropriate plugin configuration set up to run the specific block edit test project.

How do I run editor-time tests for a specific Gutenberg block plugin?

Run editor-time tests for a specific Gutenberg block plugin by executing the Playwright test command with the block edit project configuration. Set your plugin slug environment variable and run the Playwright test runner targeting the block edit project.

Can I test custom InspectorControls added to Gutenberg blocks?

Yes, you can test custom InspectorControls added to Gutenberg blocks. The automated tests validate the editor experience to ensure that custom controls and all block attributes function as expected during the editing process.

What is the best way to verify undo/redo functionality in Gutenberg blocks?

The best way to verify undo/redo functionality in Gutenberg blocks is through automated editor-time testing. This approach programmatically triggers undo and redo actions to validate that block states and attributes revert and restore correctly.