900 B
900 B
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 in UI mode:
pnpm test:e2e --ui
-
Run in debug mode:
pnpm test:e2e --debug