Skip to content

Commit

Permalink
Merge pull request #195 from woocommerce/release/4.7.3
Browse files Browse the repository at this point in the history
Release/4.7.3
  • Loading branch information
dkotter authored Aug 13, 2024
2 parents 48978f1 + 7b74acd commit 21c7d4a
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 15 deletions.
8 changes: 8 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
*** WooCommerce Square Changelog ***

= 4.7.3 - 2024-08-13 =
* Fix - Inconsistency in the height of Express Payment Button and compliance with the new Woo Express Payment Method Styling API.
* Fix - Ensure the "Uncaught TypeError" JavaScript console error does not occur for out-of-stock products.
* Fix - Ensure compatibility with WooPayments extension.
* Dev - Bump WooCommerce "tested up to" version 9.1.
* Dev - Bump WooCommerce minimum supported version to 8.9.
* Dev - Update NPM packages and node version to v20 to modernize developer experience.

= 4.7.2 - 2024-07-29 =
* Fix - Check if dependencies are loaded before showing onboarding process.
* Fix - Ensure the product category syncs properly between the Square and WooCommerce store.
Expand Down
6 changes: 3 additions & 3 deletions includes/WC_Payments_Compatibility.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
/**
* WC_Payments_Compatibility Class
*
* @version x.x.x
* @version 4.7.3
*/
class WC_Payments_Compatibility {

/**
* Initialize the WooPayments Compatibility class.
*
* @since x.x.x
* @since 4.7.3
*/
public function init() {
add_filter( 'wcpay_payment_request_is_product_supported', array( $this, 'wcpay_is_product_supported' ), 10, 2 );
Expand All @@ -32,7 +32,7 @@ public function init() {
* Runs on the `wcpay_payment_request_is_product_supported` and
* `wcpay_woopay_button_is_product_supported` filters.
*
* @since x.x.x
* @since 4.7.3
*
* @param bool $is_supported Whether express pay buttons are supported on product pages.
* @param \WC_Product $product The product object.
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "git://github.com/woocommerce/woocommerce-square.git"
},
"title": "WooCommerce Square",
"version": "4.7.2",
"version": "4.7.3",
"homepage": "https://woocommerce.com/products/woocommerce-square/",
"scripts": {
"build": "composer install --no-dev && npm run build:webpack && npm run archive",
Expand Down
10 changes: 9 additions & 1 deletion readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: credit card, square, woocommerce, inventory sync
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.4
Stable tag: 4.7.2
Stable tag: 4.7.3
License: GPL-3.0-or-later
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -72,6 +72,14 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o

== Changelog ==

= 4.7.3 - 2024-08-13 =
* Fix - Inconsistency in the height of Express Payment Button and compliance with the new Woo Express Payment Method Styling API.
* Fix - Ensure the "Uncaught TypeError" JavaScript console error does not occur for out-of-stock products.
* Fix - Ensure compatibility with WooPayments extension.
* Dev - Bump WooCommerce "tested up to" version 9.1.
* Dev - Bump WooCommerce minimum supported version to 8.9.
* Dev - Update NPM packages and node version to v20 to modernize developer experience.

= 4.7.2 - 2024-07-29 =
* Fix - Check if dependencies are loaded before showing onboarding process.
* Fix - Ensure the product category syncs properly between the Square and WooCommerce store.
Expand Down
1 change: 1 addition & 0 deletions tests/e2e/specs/a1.plugin-activation.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { test, expect } from '@playwright/test';

test( 'Can deactivate the plugin without any error', async ( { page } ) => {
await page.goto( '/wp-admin/' );
await page.goto( '/wp-admin/plugins.php' );
await page.locator( '#deactivate-woocommerce-square' ).click();
await expect( await page.getByText( 'Plugin deactivated.' ) ).toHaveCount(
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/specs/a4.gateway-status.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test( 'Enable/Disable Payment Gateway in WooCommerce Settings', async ( {
await page.goto( '/wp-admin/admin.php?page=wc-settings&tab=checkout' );
await expect(
page.locator( 'tr[data-gateway_id="square_credit_card"] .action' )
).toHaveText( 'Finish set up' );
).toHaveText( 'Finish setup' );

await page.goto( '/wp-admin/admin.php?page=wc-settings&tab=checkout&section=square_credit_card' );
await page.getByTestId( 'credit-card-gateway-toggle-field' ).check();
Expand Down
3 changes: 2 additions & 1 deletion tests/e2e/specs/d1.cash-app-pay.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,8 @@ test.describe('Cash App Pay Tests', () => {
// Confirm that the Cash App Pay is not visible on block-checkout page.
await visitCheckout(page, true);
await fillAddressFields(page, true);
await page.locator('#billing-country').locator('input').fill('India');
await page.locator('#billing-country').selectOption('IN');
await page.locator('#billing-country').blur();
await page.waitForTimeout(1500);
const blockPayMethod = await page.locator(
'label[for="radio-control-wc-payment-method-options-square_cash_app_pay"]'
Expand Down
6 changes: 2 additions & 4 deletions tests/e2e/utils/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,17 +121,15 @@ export async function fillAddressFields( page, isBlock = true ) {
.fill( customer.addr1 );
await page
.locator( '#billing-country' )
.locator( 'input' )
.fill( customer.countryBlock );
.selectOption( customer.country );
await page.waitForTimeout( 1500 );
await page
.locator( '#billing-city' )
.fill( customer.city );
await page.waitForTimeout( 1500 );
await page
.locator( '#billing-state' )
.locator( 'input' )
.fill( customer.stateBlock );
.selectOption( customer.state );
await page.waitForTimeout( 1500 );
await page
.locator( '#billing-postcode' )
Expand Down
4 changes: 2 additions & 2 deletions woocommerce-square.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/**
* Plugin Name: WooCommerce Square
* Requires Plugins: woocommerce
* Version: 4.7.2
* Version: 4.7.3
* Plugin URI: https://woocommerce.com/products/square/
* Requires at least: 6.4
* Tested up to: 6.6
Expand All @@ -29,7 +29,7 @@
defined( 'ABSPATH' ) || exit;

if ( ! defined( 'WC_SQUARE_PLUGIN_VERSION' ) ) {
define( 'WC_SQUARE_PLUGIN_VERSION', '4.7.2' ); // WRCS: DEFINED_VERSION.
define( 'WC_SQUARE_PLUGIN_VERSION', '4.7.3' ); // WRCS: DEFINED_VERSION.
}

if ( ! defined( 'WC_SQUARE_PLUGIN_URL' ) ) {
Expand Down

0 comments on commit 21c7d4a

Please sign in to comment.