Skip to content

Commit

Permalink
Merge branch 'feature/google-api-project' into dev/notifications-e2e-…
Browse files Browse the repository at this point in the history
…grant-acess
  • Loading branch information
puntope committed Jul 21, 2024
2 parents 1818ce4 + b349674 commit 4380d21
Show file tree
Hide file tree
Showing 11 changed files with 271 additions and 256 deletions.
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
*** WooCommerce Google Listings and Ads Changelog ***

= 2.7.6 - 2024-07-09 =
* Dev - Update connect server URL in test proxy configuration.
* Tweak - WC 9.1 compatibility.
* Tweak - WP 6.6 compatibility.

= 2.7.5 - 2024-06-26 =
* Add - Add an query parameter `campaign=saved` to the dashboard URL after the campaign was created.

Expand Down
8 changes: 4 additions & 4 deletions google-listings-and-ads.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
* Plugin Name: Google Listings and Ads
* Plugin URL: https://wordpress.org/plugins/google-listings-and-ads/
* Description: Native integration with Google that allows merchants to easily display their products across Google’s network.
* Version: 2.7.5
* Version: 2.7.6
* Author: WooCommerce
* Author URI: https://woocommerce.com/
* Text Domain: google-listings-and-ads
* Requires at least: 5.9
* Tested up to: 6.5
* Tested up to: 6.6
* Requires PHP: 7.4
* Requires PHP Architecture: 64 bits
* Requires Plugins: woocommerce
* WC requires at least: 6.9
* WC tested up to: 9.0
* WC tested up to: 9.1
* Woo:
*
* @package WooCommerce\Admin
Expand All @@ -30,7 +30,7 @@

defined( 'ABSPATH' ) || exit;

define( 'WC_GLA_VERSION', '2.7.5' ); // WRCS: DEFINED_VERSION.
define( 'WC_GLA_VERSION', '2.7.6' ); // WRCS: DEFINED_VERSION.
define( 'WC_GLA_MIN_PHP_VER', '7.4' );
define( 'WC_GLA_MIN_WC_VER', '6.9' );

Expand Down
12 changes: 8 additions & 4 deletions js/src/components/paid-ads/budget-section/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,14 @@ const BudgetSection = ( { formProps, disabled = false, children } ) => {
<Section
disabled={ disabled }
title={ __( 'Set your budget', 'google-listings-and-ads' ) }
description={ __(
'With Performance Max campaigns, you can set your own budget and Google’s Smart Bidding technology will serve the most appropriate ad, with the optimal bid, to maximize campaign performance. You only pay when people click on your ads, and you can start or stop your campaign whenever you want.',
'google-listings-and-ads'
) }
description={
<p>
{ __(
'With Performance Max campaigns, you can set your own budget and Google’s Smart Bidding technology will serve the most appropriate ad, with the optimal bid, to maximize campaign performance. You only pay when people click on your ads, and you can start or stop your campaign whenever you want.',
'google-listings-and-ads'
) }
</p>
}
>
<Section.Card>
<Section.Card.Body className="gla-budget-section__card-body">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function CampaignPreviewCard() {
return (
<Section.Card className="gla-campaign-preview-card">
<Section.Card.Body>
<Flex align="start" gap={ 9 }>
<Flex align="start" gap={ 9 } direction={ [ 'column', 'row' ] }>
<FlexBlock>
<Section.Card.Title>
{ __(
Expand Down
2 changes: 1 addition & 1 deletion 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
@@ -1,7 +1,7 @@
{
"name": "google-listings-and-ads",
"title": "Google Listings and Ads",
"version": "2.7.5",
"version": "2.7.6",
"description": "google-listings-and-ads",
"author": "Automattic",
"license": "GPL-3.0-or-later",
Expand Down
13 changes: 7 additions & 6 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
Contributors: automattic, google, woocommerce
Tags: woocommerce, google, product feed, ads, listings
Requires at least: 5.9
Tested up to: 6.5
Tested up to: 6.6
Requires PHP: 7.4
Requires PHP Architecture: 64 Bits
Stable tag: 2.7.5
Stable tag: 2.7.6
License: GPLv3
License URI: https://www.gnu.org/licenses/gpl-3.0.html

Expand Down Expand Up @@ -111,6 +111,11 @@ Yes, you can run both at the same time, and we recommend it! In the US, advertis

== Changelog ==

= 2.7.6 - 2024-07-09 =
* Dev - Update connect server URL in test proxy configuration.
* Tweak - WC 9.1 compatibility.
* Tweak - WP 6.6 compatibility.

= 2.7.5 - 2024-06-26 =
* Add - Add an query parameter `campaign=saved` to the dashboard URL after the campaign was created.

Expand All @@ -119,8 +124,4 @@ Yes, you can run both at the same time, and we recommend it! In the US, advertis
* Dev - Add E2E tests for WP Consent API integration.
* Tweak - Add docs note about WP Consent API integration.

= 2.7.3 - 2024-06-18 =
* Fix - Fatal error when loading campaign in the marketing overview section.
* Tweak - Replace woo.com references with woocommerce.com.

[See changelog for all versions](https://raw.githubusercontent.com/woocommerce/google-listings-and-ads/trunk/changelog.txt).
462 changes: 231 additions & 231 deletions src/Hooks/README.md

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion tests/e2e/specs/product-editor/block-integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,9 @@ test.describe( 'Product Block Editor integration', () => {

await input.fill( '-1' );

await editorUtils.assertUnableSave();
await editorUtils.assertUnableSave(
'The minimum value of the field is 0'
);
await expect( help ).toBeVisible();
await expect( help ).toHaveText(
await editorUtils.evaluateValidationMessage( input )
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/utils/mock-requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export default class MockRequests {
*/
async fulfillWCDefaultCountry( payload ) {
await this.fulfillRequest(
/wc-admin\/options\?options=woocommerce_default_country\b/,
/wc-admin\/options\?options=.*woocommerce_default_country\b/,
payload
);
}
Expand Down
15 changes: 9 additions & 6 deletions tests/e2e/utils/product-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,8 +291,8 @@ export function getProductBlockEditorUtils( page ) {
const locators = {
getTab( tabName ) {
return page
.getByRole( 'tablist' )
.getByRole( 'button', { name: tabName } );
.locator( '.woocommerce-product-tabs' )
.getByRole( 'tab', { name: tabName } );
},

getPluginTab() {
Expand Down Expand Up @@ -507,17 +507,20 @@ export function getProductBlockEditorUtils( page ) {
};

const assertions = {
async assertUnableSave() {
async assertUnableSave( message = 'Please enter a valid value.' ) {
await this.clickSave();

const failureNotice = page
.getByRole( 'button' )
.filter( { hasText: 'Failed to save product' } );
.locator( '.components-snackbar__content' )
.filter( { hasText: new RegExp( message ) } );

const failureNoticeDismissButton =
failureNotice.getByRole( 'button' );

await expect( failureNotice ).toBeVisible();

// Dismiss the notice.
await failureNotice.click();
await failureNoticeDismissButton.click();
await expect( failureNotice ).toHaveCount( 0 );
},
};
Expand Down

0 comments on commit 4380d21

Please sign in to comment.