7d71e2235a
* Updated Collection Selection Buttons Rather than using normal buttons we're going to replace these with cards that we want to use instead. * Reworked Product Catalog Creation * Added Dropdown Collection Option * Changelog * Added Collection Dashicon Support * Fixed Collection Change Modal This is going to get replaced soon but it may as well look nicer than it does right now. * Type Fix * Fixed `:focus` Hover Border * Simplified Click Handler * Style Fixes * Gutenberg Style Fixes * E2E Fixes * Fixed E2E Test * Added Dropdown Inserter E2E Support * Logging * Fixed Default Insertion Options * Prevent Premature Rendering * E2E Fix Attempt * Lint Fix * E2E Fix * Fix test chaking if custom registred collections are available in the collection chooser * Improve logic of choosing collection to cover both dropdown and placeholder --------- Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.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