038ef3d751
* Add overlay settings * Tweak icon size slider * Add overlay template part link * Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce * Fix scss linting * Fix php linting * Remove preview * Rename setting props to be more clear * Remove unused import * Update plugins/woocommerce-blocks/assets/js/blocks/product-filters/editor.scss Co-authored-by: Tung Du <dinhtungdu@gmail.com> * Update plugins/woocommerce-blocks/assets/js/blocks/product-filters/edit.tsx Co-authored-by: Tung Du <dinhtungdu@gmail.com> * Update plugins/woocommerce-blocks/assets/js/blocks/product-filters/types.ts Co-authored-by: Tung Du <dinhtungdu@gmail.com> * Update plugins/woocommerce-blocks/assets/js/blocks/product-filters/edit.tsx Co-authored-by: Tung Du <dinhtungdu@gmail.com> * Move experimental controls to last of list * Improve typescript code * Remove unneeded constructor code * Extract icons into own component * Moved overlay template part link to the bottom * Add apply button * Hide overlay settings when in always mode * Remove overlay template part from list and put into general area * Update api version to 3 * Update plugins/woocommerce-blocks/assets/js/icons/library/filter.tsx Co-authored-by: Alexandre Lara <allexandrelara@gmail.com> * Update plugins/woocommerce-blocks/assets/js/icons/library/filter-three-lines.tsx Co-authored-by: Alexandre Lara <allexandrelara@gmail.com> * Fix overlay button link style and clickable * Remove edit overlay link from never mode * Add e2e tests for the filters overlay settings --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Tung Du <dinhtungdu@gmail.com> Co-authored-by: Alexandre Lara <allexandrelara@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