Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: update

Update WooCommerce Blocks to 11.7.0
2 changes: 1 addition & 1 deletion plugins/woocommerce/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 7 additions & 7 deletions plugins/woocommerce/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 4 additions & 9 deletions plugins/woocommerce/tests/e2e-pw/tests/shopper/mini-cart.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.';
Expand Down Expand Up @@ -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)' } )
Expand All @@ -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 }` );
Expand Down Expand Up @@ -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' )
Expand Down