72112bd5d4
* Update isAddressComplete to allow only specific fields to be checked * Update tests for isAddressComplete * Update wording on "enter address" prompt in Cart sidebar * Update Shipping to Delivery in cart & checkout shipping total * Only check the city, state, country, & postcode fields in shipping calc * Update wording in the "Ships to" section of cart/checkout sidebar * Update shipping calculator button to say delivery * Update tests to use new strings * Remove test that was falsely passing anyway This test checked for presence of a string that wasn't in the codebase. It also doesn't seem like a valid test. Why would we want to remove the button just because default rates are available? * Add changelog * Left align text in shipping calculator button It floats weirdly in the middle with the new text changes * Update text in tests * Update wording in unit tests * Update shipping calculator text in test * Update shipping text in test * Update use of shipping in tests * Skip test with no translation available * Lint fixes --------- Co-authored-by: Seghir Nadir <nadir.seghir@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