From c6bc1a268264517539a510aa9ef7ceb83678bcd5 Mon Sep 17 00:00:00 2001 From: Sumit Bagthariya <67687255+qasumitbagthariya@users.noreply.github.com> Date: Fri, 31 Jan 2025 17:12:22 +0530 Subject: [PATCH 1/3] version bump --- woocommerce-square.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/woocommerce-square.php b/woocommerce-square.php index bb0899df..adc3a641 100644 --- a/woocommerce-square.php +++ b/woocommerce-square.php @@ -4,7 +4,7 @@ * Requires Plugins: woocommerce * Version: 4.8.5 * Plugin URI: https://woocommerce.com/products/square/ - * Requires at least: 6.5 + * Requires at least: 6.6 * Tested up to: 6.7 * Requires PHP: 7.4 * PHP tested up to: 8.3 @@ -22,8 +22,8 @@ * @copyright Copyright (c) 2019, Automattic, Inc. * @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0 or later * - * WC requires at least: 9.4 - * WC tested up to: 9.6 + * WC requires at least: 9.5 + * WC tested up to: 9.7 */ defined( 'ABSPATH' ) || exit; From d21d81f8d62c9d66fbb42f49e0f30294c1b9e28c Mon Sep 17 00:00:00 2001 From: Sumit Bagthariya <67687255+qasumitbagthariya@users.noreply.github.com> Date: Fri, 31 Jan 2025 17:13:21 +0530 Subject: [PATCH 2/3] Update woocommerce-square.php --- woocommerce-square.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/woocommerce-square.php b/woocommerce-square.php index adc3a641..9f0e28a0 100644 --- a/woocommerce-square.php +++ b/woocommerce-square.php @@ -52,10 +52,10 @@ class WooCommerce_Square_Loader { const MINIMUM_PHP_VERSION = '7.4.0'; /** minimum WordPress version required by this plugin */ - const MINIMUM_WP_VERSION = '6.5'; + const MINIMUM_WP_VERSION = '6.6'; /** minimum WooCommerce version required by this plugin */ - const MINIMUM_WC_VERSION = '9.4'; + const MINIMUM_WC_VERSION = '9.5'; /** * SkyVerge plugin framework version used by this plugin From 548f9effdb82f741f896c054d04ca5161b853f66 Mon Sep 17 00:00:00 2001 From: Dharmesh Patel Date: Tue, 4 Feb 2025 15:11:57 +0530 Subject: [PATCH 3/3] E2E: Test fix flaky tests. --- tests/e2e/specs/e1.subscriptions.spec.js | 9 +++++---- tests/e2e/utils/helper.js | 4 +--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/tests/e2e/specs/e1.subscriptions.spec.js b/tests/e2e/specs/e1.subscriptions.spec.js index 274e8ec6..92dcb8f9 100644 --- a/tests/e2e/specs/e1.subscriptions.spec.js +++ b/tests/e2e/specs/e1.subscriptions.spec.js @@ -178,13 +178,14 @@ test.describe('Subscriptions Tests @general', () => { ) .first() .click(); - await page + const methodLocator = await page .locator( '.wc-block-checkout__payment-method .wc-block-components-radio-control' ) - .locator('input.wc-block-components-radio-control__input') - .first() - .check(); + .locator('input.wc-block-components-radio-control__input'); + await methodLocator.first().waitFor(); + await methodLocator.first().check(); + await placeOrder(page, isBlock); // verify order received page diff --git a/tests/e2e/utils/helper.js b/tests/e2e/utils/helper.js index 5f2f46cc..98062f40 100644 --- a/tests/e2e/utils/helper.js +++ b/tests/e2e/utils/helper.js @@ -301,9 +301,7 @@ export async function fillCreditCardFields( page, isCheckout = true, isBlock = t } export async function placeOrder( page, isBlock = true ) { - if ( isBlock ) { - await page.waitForTimeout( 2000 ); - } + await page.waitForTimeout( 2000 ); await page.locator( '.wc-block-components-checkout-place-order-button, #place_order' ).first().click(); }