41cf2b285e
* Remove overlay icon settings from parent block * Change overlay block icon to generic button icon * Add logic to remove overlay nav when overlay mode is set to never * Add logic to add overlay nav when overlay mode is not never * Add default attributes for overlay nav button * Add changefile(s) from automation for the following project(s): woocommerce-blocks * Use unique icons for each overlay navigation close and open * Add icon picker for open overlay navigation * Add trigger type for overlay close navigation * Add missing settings label * Fix e2e tests * Skip a test for overlay-navigation block * Add e2e tests for overlay button behavior * Fix linting error * Skip overlay nav tests * Fix icon size value not saving * Revise logic to target explicitly the innerblock of product-filters * Ensure overlay navigation is of type open-overlay * Prevent possible race conditions --------- Co-authored-by: github-actions <github-actions@github.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