dace7ba296
* Add syncWithFilters attribute to Product Collection * Add SycnWithFilters Inspector Control to PC * Minor import adjustments * Move the controls to Inherit as they share the same labels * Rename the attirbute to filterable * Hide control for collections * Consume the filterable * Consume filterable attribute so it enables the filtering * Bring back file format * Bring back filterable * Move filterable from attribute to query * Improve checks * Fix incorrent function name * Add changelog * Set the default filterable value on insert * Update test selector * Add E2E tests to #49627 (#49715) * Remove unnecessary call to create new post * Fix "Use page context" control tests * Fix post ↔ template collection sync test * Fix non-thenable linter errors * Extend the "Use page context" default setting test * Add test for filtering in non-archive context * Add test for combining editor and front-end filters * Fix lint * Update plugins/woocommerce-blocks/assets/js/blocks/product-collection/edit/inspector-controls/inherit-query-control.tsx Co-authored-by: Manish Menaria <the.manish.menaria@gmail.com> * Improve query properties access * Rename inherit-query-control to use-page-context-control to better depict its purpose * Lint fix --------- Co-authored-by: Bart Kalisz <bartlomiej.kalisz@gmail.com> Co-authored-by: Manish Menaria <the.manish.menaria@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