9b3879f7cf
* Add (Experimental) suffix to experimental blocks * Add comments reminding to update feature flags doc * Update feature flag doc * Add changelog * Provide links to all feature flags * Add JS flag for Product Filter: Rating (Experimental) * Bring back linting in PHP file * Update block references * Update variation names * Update tests * Update test * Add notification that block is not available in inserter to block references doc * Add missing feature flag * Remove information about block not being exposed in inserter from block references * Update block references |
||
---|---|---|
.. | ||
bin | ||
content-templates | ||
plugins | ||
rules | ||
test-data/data | ||
tests | ||
themes | ||
utils | ||
.eslintrc.js | ||
README.md | ||
flaky-tests-reporter.ts | ||
global-setup.ts | ||
playwright.config.ts | ||
playwright.performance.config.ts | ||
tsconfig.json |
README.md
WooCommerce Blocks End-to-End Tests
This document provides an overview of the WooCommerce Blocks end-to-end testing process. For detailed instructions and comprehensive guidelines, please refer to the contributor guidelines document.
Quick Start
Preparing the Environment
-
Build the WooCommerce Plugin:
pnpm --filter='@woocommerce/plugin-woocommerce' watch:build
-
Go to the WooCommerce Blocks plugin folder:
cd plugins/woocommerce-blocks/
-
Start the environment:
pnpm env:start
Running the Tests
-
Run all tests:
pnpm test:e2e
-
Run a single test file:
pnpm test:e2e path/to/the/file.spec.ts
-
Run/Debug in UI mode:
pnpm test:e2e --ui