diff --git a/tests/e2e/specs/shopper/mini-cart.test.js b/tests/e2e/specs/shopper/mini-cart.test.js index a8e63429bec..9c5c5414837 100644 --- a/tests/e2e/specs/shopper/mini-cart.test.js +++ b/tests/e2e/specs/shopper/mini-cart.test.js @@ -139,9 +139,7 @@ describe( 'Shopper → Mini Cart', () => { // Wait for the drawer to fully open. await page.waitForTimeout( 500 ); - await page.click( - '.wc-block-mini-cart__drawer .components-modal__header button' - ); + await page.click( '.wc-block-components-drawer__close' ); await expect( page ).not.toMatchElement( '.wc-block-mini-cart__drawer',