2a406c7e8a
* Update all blocks to V3 * remove explicit version set in shared config blocks * update styling for Cart/Checkout in iframe * test: fix block e2e tests * test: fix attribute filter e2e tests * test: fix product collection e2e tests * test: fix product on sale e2e test * test: fix rating filter e2e tests * test: fix review e2e tests * test: fix stock e2e tests * test: fix preview button test * fix: product on sale wrapper * test: fix insertBlockByShortcut in iframe * test: fix core e2e tests * chore: changelog * test: typo * test: update PC e2e tests * add test to make sure iframe canvas is loaded * fix syntax error * Update plugins/woocommerce-blocks/tests/e2e/tests/basic.block_theme.spec.ts Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com> --------- Co-authored-by: Tung Du <dinhtungdu@gmail.com> Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com> |
||
---|---|---|
.. | ||
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 in UI mode:
pnpm test:e2e --ui
-
Run in debug mode:
pnpm test:e2e --debug