块编辑器开发文档

@wordpress/e2e-tests

💡 云策文档标注

概述

此包包含用于 WordPress E2E 测试的测试插件和 mu-plugins,提供测试夹具和功能。E2E 测试本身已迁移到 Playwright,位于 /test/e2e/。

关键要点

  • 包含 /plugins/、/mu-plugins/ 和 /assets/ 目录,分别用于测试插件、必须使用插件和测试资源
  • 通过 wp-env 在测试环境中自动加载,支持各种 E2E 测试场景
  • 是 Gutenberg 项目的一部分,作为 monorepo 中的独立包发布到 npm

📄 原文内容

This package contains test plugins and mu-plugins used by E2E tests in WordPress.

Note: The E2E tests themselves have been migrated to Playwright and are now located in /test/e2e/.

Contents

  • /plugins/ – Test plugins used by E2E tests
  • /mu-plugins/ – Must-use plugins for test environment configuration
  • /assets/ – Test assets (images, etc.)

Usage

These plugins and mu-plugins are automatically loaded in the test environment via wp-env. They provide test fixtures and functionality needed for various E2E test scenarios.

For information about writing E2E tests, see the E2E testing guide.

Contributing to this package

This is an individual package that’s part of the Gutenberg project. The project is organized as a monorepo. It’s made up of multiple self-contained software packages, each with a specific purpose. The packages in this monorepo are published to npm and used by WordPress as well as other software projects.

To find out more about contributing to this package or Gutenberg as a whole, please read the project’s main contributor guide.