diff --git a/plugins/woocommerce/changelog/update-woocommerce-blocks-11.7.0 b/plugins/woocommerce/changelog/update-woocommerce-blocks-11.7.0 new file mode 100644 index 0000000000000..9adfbfa3c3f09 --- /dev/null +++ b/plugins/woocommerce/changelog/update-woocommerce-blocks-11.7.0 @@ -0,0 +1,4 @@ +Significance: minor +Type: update + +Update WooCommerce Blocks to 11.7.0 diff --git a/plugins/woocommerce/composer.json b/plugins/woocommerce/composer.json index 09e65f226fbcc..d1c4c0c1f9d46 100644 --- a/plugins/woocommerce/composer.json +++ b/plugins/woocommerce/composer.json @@ -23,7 +23,7 @@ "maxmind-db/reader": "^1.11", "pelago/emogrifier": "^6.0", "woocommerce/action-scheduler": "3.7.0", - "woocommerce/woocommerce-blocks": "11.6.2" + "woocommerce/woocommerce-blocks": "11.7.0" }, "require-dev": { "automattic/jetpack-changelogger": "^3.3.0", diff --git a/plugins/woocommerce/composer.lock b/plugins/woocommerce/composer.lock index c38723496c74e..e28e662bb2048 100644 --- a/plugins/woocommerce/composer.lock +++ b/plugins/woocommerce/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b13f42c7f70306c97ed8b7096be6f837", + "content-hash": "b6acb0cb84f1203222c10e9a337f2963", "packages": [ { "name": "automattic/jetpack-a8c-mc-stats", @@ -1004,16 +1004,16 @@ }, { "name": "woocommerce/woocommerce-blocks", - "version": "11.6.2", + "version": "11.7.0", "source": { "type": "git", "url": "https://github.com/woocommerce/woocommerce-blocks.git", - "reference": "09990ad4a58b92cdf69301a8c7fb729d11846458" + "reference": "a26a94d13d9f21fe673f37a14aa1bb17adf7ead6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/woocommerce/woocommerce-blocks/zipball/09990ad4a58b92cdf69301a8c7fb729d11846458", - "reference": "09990ad4a58b92cdf69301a8c7fb729d11846458", + "url": "https://api.github.com/repos/woocommerce/woocommerce-blocks/zipball/a26a94d13d9f21fe673f37a14aa1bb17adf7ead6", + "reference": "a26a94d13d9f21fe673f37a14aa1bb17adf7ead6", "shasum": "" }, "require": { @@ -1064,9 +1064,9 @@ ], "support": { "issues": "https://github.com/woocommerce/woocommerce-blocks/issues", - "source": "https://github.com/woocommerce/woocommerce-blocks/tree/v11.6.2" + "source": "https://github.com/woocommerce/woocommerce-blocks/tree/v11.7.0" }, - "time": "2023-12-04T16:50:04+00:00" + "time": "2023-12-05T09:40:55+00:00" } ], "packages-dev": [ diff --git a/plugins/woocommerce/tests/e2e-pw/tests/shopper/mini-cart.spec.js b/plugins/woocommerce/tests/e2e-pw/tests/shopper/mini-cart.spec.js index 099a1f4b0cb93..e93da78e59b3c 100644 --- a/plugins/woocommerce/tests/e2e-pw/tests/shopper/mini-cart.spec.js +++ b/plugins/woocommerce/tests/e2e-pw/tests/shopper/mini-cart.spec.js @@ -6,6 +6,7 @@ const wcApi = require( '@woocommerce/woocommerce-rest-api' ).default; const pageTitle = 'Mini Cart'; const pageSlug = pageTitle.replace( / /gi, '-' ).toLowerCase(); const miniCartButton = '.wc-block-mini-cart__button'; +const miniCartBadge = '.wc-block-mini-cart__badge'; const simpleProductName = 'Single Hundred Product'; const simpleProductDesc = 'Lorem ipsum dolor sit amet.'; @@ -192,9 +193,7 @@ test.describe( 'Mini Cart block page', () => { // go to page with mini cart block and test with the product added await page.goto( pageSlug ); - await expect( - page.locator( '.wc-block-mini-cart__button' ) - ).toContainText( `$${ singleProductSalePrice }` ); + await expect( page.locator( miniCartBadge ) ).toContainText( '1' ); await page.locator( miniCartButton ).click(); await expect( page.getByRole( 'heading', { name: 'Your cart (1 item)' } ) @@ -210,9 +209,7 @@ test.describe( 'Mini Cart block page', () => { await expect( page.getByRole( 'heading', { name: 'Your cart (2 items)' } ) ).toBeVisible(); - await expect( - page.locator( '.wc-block-mini-cart__button' ) - ).toContainText( `$${ singleProductSalePrice * 2 }` ); + await expect( page.locator( miniCartBadge ) ).toContainText( '2' ); await expect( page.locator( '.wc-block-components-totals-item__value' ) ).toContainText( `$${ singleProductSalePrice * 2 }` ); @@ -282,9 +279,7 @@ test.describe( 'Mini Cart block page', () => { await expect( page.getByRole( 'heading', { name: pageTitle } ) ).toBeVisible(); - await expect( - page.locator( '.wc-block-mini-cart__button' ) - ).toContainText( `$${ totalInclusiveTax }` ); + await expect( page.locator( miniCartBadge ) ).toContainText( '1' ); await page.locator( miniCartButton ).click(); await expect( page.locator( '.wc-block-components-totals-item__value' )