This website requires JavaScript.
Explore
Help
Sign In
Steve-Dee-Designs
/
woocommerce
mirror of
https://github.com/woocommerce/woocommerce.git
Watch
1
Star
0
Fork
You've already forked woocommerce
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
85e7bb0a0c
woocommerce
/
plugins
/
woocommerce-blocks
/
tests
/
e2e
/
themes
/
theme-with-woo-templates
/
block-template-parts
/
header.html
6 lines
87 B
HTML
Raw
Normal View
History
Unescape
Escape
Add mock theme with Woo Templates for E2E tests (https://github.com/woocommerce/woocommerce-blocks/pull/5920) This PR adds a block-enabled theme with templates for WooCommerce which is intended to be used when testing the more complex scenarios such as template fallbacks. Additionally, since theme-dependent logic seems to be becoming more and more useful (see woocommerce/woocommerce-blocks#5913), this PR also adds a utility function used to explicitly declare theme dependencies of a test (`useTheme`). Said function will activate the theme before running a given suite and then reactivate the previous theme, as to make sure to not have any side-effects (such as the ones described in woocommerce/woocommerce-blocks#5913 above). Closes woocommerce/woocommerce-blocks#5660
2022-03-02 14:49:00 +00:00
<!--
wp:site
-
title /
-->
<!--
wp:site
-
tagline /
-->
Add e2e tests to verify block templates can be customized if the theme has its own custom templates (#43650) * Update commands to run e2e tests * Capitalize Product Catalog template name * Create tests with block theme with templates * Create Block Theme with Templates test environment * Update classic theme commands * Code cleanup * Add changefile(s) from automation for the following project(s): woocommerce-blocks * Code cleanup (II) * Add config to blocks-playwright.yml and remove unnecesssary .github/workflows/playwright.yml file * Remove unnecessary imports from product-catalog-template.block_theme_with_templates.spec.ts * Update blocks e2e commands to pnpm * Replace hardcoded strings with a variable * Unify all 'block theme with templates' tests in a parameterized test * Create a testData object for the Mini-Cart template part test * Fix some code styling issues * Create a testData object for the Mini-Cart template part test (II) * Remove duplicate userText variable --------- Co-authored-by: github-actions <github-actions@github.com>
2024-01-18 10:39:24 +00:00
<!--
wp:woocommerce/mini
-
cart /
-->