Rename Google Listings and Ads with Google for WooCommerce (#47614)

* Rename Google Listings and Ads with Google for WooCommerce

* Revert change regarding changelog

* Add changelogs

* Add changefile(s) from automation for the following project(s): @woocommerce/data, packages/php/remote-specs-validation, woocommerce

* Lint

* Lint

* Lint

* Rename Google Listings and Ads with Google for WooCommerce

* Lint

* Lint

* Tweak updated tests

* Add changefile(s) from automation for the following project(s): @woocommerce/data, packages/php/remote-specs-validation, woocommerce

* Lint

* Fix flaky tests

---------

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Miguel Pérez Pellicer 2024-07-22 18:59:43 +04:00 committed by GitHub
parent ab8517fa08
commit dd8f9686fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
16 changed files with 67 additions and 35 deletions

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Rename Google Listings and Ads with Google for WooCommerce #### Comment <!-- If the changes in this pull request don't warrant a changelog entry, you can alternatively supply a comment here. Note that comments are only accepted with a significance of "Patch" -->

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Rename Google Listings and Ads with Google for WooCommerce

View File

@ -52,7 +52,7 @@ export const pluginNames = {
'Mercado Pago payments for WooCommerce', 'Mercado Pago payments for WooCommerce',
'woocommerce' 'woocommerce'
), ),
'google-listings-and-ads': __( 'Google Listings and Ads', 'woocommerce' ), 'google-listings-and-ads': __( 'Google for WooCommerce', 'woocommerce' ),
'woo-razorpay': __( 'Razorpay', 'woocommerce' ), 'woo-razorpay': __( 'Razorpay', 'woocommerce' ),
mailpoet: __( 'MailPoet', 'woocommerce' ), mailpoet: __( 'MailPoet', 'woocommerce' ),
'pinterest-for-woocommerce': __( 'pinterest-for-woocommerce': __(

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Rename Google Listings and Ads with Google for WooCommerce #### Comment <!-- If the changes in this pull request don't warrant a changelog entry, you can alternatively supply a comment here. Note that comments are only accepted with a significance of "Patch" -->

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Rename Google Listings and Ads with Google for WooCommerce

View File

@ -425,8 +425,8 @@
"key": "mailpoet" "key": "mailpoet"
}, },
{ {
"name": "Google Listings & Ads", "name": "Google for WooCommerce",
"description": "Drive sales with <a href=\"https://woocommerce.com/products/google-listings-and-ads\" target=\"_blank\">Google Listings and Ads</a>", "description": "Drive sales with <a href=\"https://woocommerce.com/products/google-listings-and-ads\" target=\"_blank\">Google for WooCommerce</a>",
"image_url": "https://woocommerce.com/wp-content/plugins/wccom-plugins/obw-free-extensions/images/google.svg", "image_url": "https://woocommerce.com/wp-content/plugins/wccom-plugins/obw-free-extensions/images/google.svg",
"manage_url": "admin.php?page=wc-admin&path=%2Fgoogle%2Fstart", "manage_url": "admin.php?page=wc-admin&path=%2Fgoogle%2Fstart",
"is_visible": [ "is_visible": [
@ -501,7 +501,7 @@
"title": "Grow your store", "title": "Grow your store",
"plugins": [ "plugins": [
{ {
"name": "Google Listings & Ads", "name": "Google for WooCommerce",
"description": "Reach more shoppers and drive sales for your store. Integrate with Google to list your products for free and launch paid ad campaigns.", "description": "Reach more shoppers and drive sales for your store. Integrate with Google to list your products for free and launch paid ad campaigns.",
"image_url": "https://woocommerce.com/wp-content/plugins/wccom-plugins/obw-free-extensions/images/google.svg", "image_url": "https://woocommerce.com/wp-content/plugins/wccom-plugins/obw-free-extensions/images/google.svg",
"manage_url": "admin.php?page=wc-admin&path=%2Fgoogle%2Fstart", "manage_url": "admin.php?page=wc-admin&path=%2Fgoogle%2Fstart",
@ -1034,7 +1034,7 @@
"install_priority": 7 "install_priority": 7
}, },
{ {
"name": "Google Listings & Ads", "name": "Google for WooCommerce",
"description": "Reach millions of active shoppers across Google with free product listings and ads.", "description": "Reach millions of active shoppers across Google with free product listings and ads.",
"image_url": "https://woocommerce.com/wp-content/plugins/wccom-plugins/obw-free-extensions/images/core-profiler/logo-google.svg", "image_url": "https://woocommerce.com/wp-content/plugins/wccom-plugins/obw-free-extensions/images/core-profiler/logo-google.svg",
"manage_url": "admin.php?page=wc-admin&path=%2Fgoogle%2Fstart", "manage_url": "admin.php?page=wc-admin&path=%2Fgoogle%2Fstart",
@ -1042,7 +1042,7 @@
"is_built_by_wc": true, "is_built_by_wc": true,
"min_php_version": "7.4", "min_php_version": "7.4",
"key": "google-listings-and-ads", "key": "google-listings-and-ads",
"label": "Drive sales with Google Listings & Ads", "label": "Drive sales with Google for WooCommerce",
"learn_more_link": "https://woocommerce.com/products/google-listings-and-ads", "learn_more_link": "https://woocommerce.com/products/google-listings-and-ads",
"install_priority": 6 "install_priority": 6
}, },

View File

@ -87,7 +87,7 @@ function getMarketingItems( props ) {
link: 'https://kb.mailpoet.com/category/114-getting-started', link: 'https://kb.mailpoet.com/category/114-getting-started',
}, },
activePlugins.includes( 'google-listings-and-ads' ) && { activePlugins.includes( 'google-listings-and-ads' ) && {
title: __( 'Set up Google Listing & Ads', 'woocommerce' ), title: __( 'Set up Google for WooCommerce', 'woocommerce' ),
link: 'https://woocommerce.com/document/google-listings-and-ads/?utm_medium=product#get-started', link: 'https://woocommerce.com/document/google-listings-and-ads/?utm_medium=product#get-started',
}, },
activePlugins.includes( 'pinterest-for-woocommerce' ) && { activePlugins.includes( 'pinterest-for-woocommerce' ) && {

View File

@ -35,7 +35,7 @@ const google = {
'Boost your product listings with a campaign that is automatically optimized to meet your goals.', 'Boost your product listings with a campaign that is automatically optimized to meet your goals.',
createUrl: createUrl:
'https://wc1.test/wp-admin/admin.php?page=wc-admin&path=/google/dashboard&subpath=/campaigns/create', 'https://wc1.test/wp-admin/admin.php?page=wc-admin&path=/google/dashboard&subpath=/campaigns/create',
channelName: 'Google Listings and Ads', channelName: 'Google for WooCommerce',
channelSlug: 'google-listings-and-ads', channelSlug: 'google-listings-and-ads',
}; };

View File

@ -36,7 +36,7 @@ const createTestCampaign = ( programId: string ) => {
cost: `USD 30`, cost: `USD 30`,
manageUrl: `https://wc1.test/wp-admin/admin.php?page=wc-admin&path=/google/dashboard&subpath=/campaigns/edit&programId=${ programId }`, manageUrl: `https://wc1.test/wp-admin/admin.php?page=wc-admin&path=/google/dashboard&subpath=/campaigns/edit&programId=${ programId }`,
icon: 'https://woocommerce.com/wp-content/uploads/2021/06/woo-GoogleListingsAds-jworee.png', icon: 'https://woocommerce.com/wp-content/uploads/2021/06/woo-GoogleListingsAds-jworee.png',
channelName: 'Google Listings and Ads', channelName: 'Google for WooCommerce',
channelSlug: 'google-listings-and-ads', channelSlug: 'google-listings-and-ads',
}; };
}; };
@ -198,7 +198,7 @@ describe( 'Campaigns component', () => {
'Boost your product listings with a campaign that is automatically optimized to meet your goals.', 'Boost your product listings with a campaign that is automatically optimized to meet your goals.',
channel: { channel: {
slug: 'google-listings-and-ads', slug: 'google-listings-and-ads',
name: 'Google Listings & Ads', name: 'Google for WooCommerce',
}, },
create_url: create_url:
'https://wc1.test/wp-admin/admin.php?page=wc-admin&path=/google/dashboard&subpath=/campaigns/create', 'https://wc1.test/wp-admin/admin.php?page=wc-admin&path=/google/dashboard&subpath=/campaigns/create',

View File

@ -66,7 +66,7 @@ describe( 'DiscoverTools component', () => {
isLoading: false, isLoading: false,
data: [ data: [
{ {
title: 'Google Listings and Ads', title: 'Google for WooCommerce',
description: description:
'Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.', 'Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.',
url: 'https://woocommerce.com/products/google-listings-and-ads/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons', url: 'https://woocommerce.com/products/google-listings-and-ads/?utm_source=marketingtab&utm_medium=product&utm_campaign=wcaddons',
@ -95,7 +95,7 @@ describe( 'DiscoverTools component', () => {
// Assert that we have the "Sales channels" tab, the plugin name, the "Built by WooCommerce" pill, and the "Install extension" button. // Assert that we have the "Sales channels" tab, the plugin name, the "Built by WooCommerce" pill, and the "Install extension" button.
expect( screen.getByText( 'Sales channels' ) ).toBeInTheDocument(); expect( screen.getByText( 'Sales channels' ) ).toBeInTheDocument();
expect( expect(
screen.getByText( 'Google Listings and Ads' ) screen.getByText( 'Google for WooCommerce' )
).toBeInTheDocument(); ).toBeInTheDocument();
expect( expect(
screen.getByText( 'Built by WooCommerce' ) screen.getByText( 'Built by WooCommerce' )

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Rename Google Listings and Ads with Google for WooCommerce #### Comment <!-- If the changes in this pull request don't warrant a changelog entry, you can alternatively supply a comment here. Note that comments are only accepted with a significance of "Patch" -->

View File

@ -0,0 +1,4 @@
Significance: patch
Type: tweak
Rename Google Listings and Ads with Google for WooCommerce

View File

@ -56,7 +56,7 @@ class DefaultMarketingRecommendations {
return array( return array(
array( array(
'title' => 'Google Listings and Ads', 'title' => 'Google for WooCommerce',
'description' => __( 'Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.', 'woocommerce' ), 'description' => __( 'Get in front of shoppers and drive traffic so you can grow your business with Smart Shopping Campaigns and free listings.', 'woocommerce' ),
'url' => "https://woocommerce.com/products/google-listings-and-ads/{$utm_string}", 'url' => "https://woocommerce.com/products/google-listings-and-ads/{$utm_string}",
'direct_install' => true, 'direct_install' => true,

View File

@ -93,10 +93,10 @@ class DefaultFreeExtensions {
$plugins = array( $plugins = array(
'google-listings-and-ads' => array( 'google-listings-and-ads' => array(
'min_php_version' => '7.4', 'min_php_version' => '7.4',
'name' => __( 'Google Listings & Ads', 'woocommerce' ), 'name' => __( 'Google for WooCommerce', 'woocommerce' ),
'description' => sprintf( 'description' => sprintf(
/* translators: 1: opening product link tag. 2: closing link tag */ /* translators: 1: opening product link tag. 2: closing link tag */
__( 'Drive sales with %1$sGoogle Listings and Ads%2$s', 'woocommerce' ), __( 'Drive sales with %1$sGoogle for WooCommerce%2$s', 'woocommerce' ),
'<a href="https://woocommerce.com/products/google-listings-and-ads" target="_blank">', '<a href="https://woocommerce.com/products/google-listings-and-ads" target="_blank">',
'</a>' '</a>'
), ),
@ -116,7 +116,7 @@ class DefaultFreeExtensions {
), ),
), ),
'google-listings-and-ads:alt' => array( 'google-listings-and-ads:alt' => array(
'name' => __( 'Google Listings & Ads', 'woocommerce' ), 'name' => __( 'Google for WooCommerce', 'woocommerce' ),
'description' => __( 'Reach more shoppers and drive sales for your store. Integrate with Google to list your products for free and launch paid ad campaigns.', 'woocommerce' ), 'description' => __( 'Reach more shoppers and drive sales for your store. Integrate with Google to list your products for free and launch paid ad campaigns.', 'woocommerce' ),
'image_url' => plugins_url( '/assets/images/onboarding/google.svg', WC_PLUGIN_FILE ), 'image_url' => plugins_url( '/assets/images/onboarding/google.svg', WC_PLUGIN_FILE ),
'manage_url' => 'admin.php?page=wc-admin&path=%2Fgoogle%2Fstart', 'manage_url' => 'admin.php?page=wc-admin&path=%2Fgoogle%2Fstart',
@ -862,7 +862,7 @@ class DefaultFreeExtensions {
'install_priority' => 1, 'install_priority' => 1,
), ),
'google-listings-and-ads' => array( 'google-listings-and-ads' => array(
'label' => __( 'Drive sales with Google Listings & Ads', 'woocommerce' ), 'label' => __( 'Drive sales with Google for WooCommerce', 'woocommerce' ),
'image_url' => plugins_url( '/assets/images/core-profiler/logo-google.svg', WC_PLUGIN_FILE ), 'image_url' => plugins_url( '/assets/images/core-profiler/logo-google.svg', WC_PLUGIN_FILE ),
'description' => __( 'Reach millions of active shoppers across Google with free product listings and ads.', 'woocommerce' ), 'description' => __( 'Reach millions of active shoppers across Google with free product listings and ads.', 'woocommerce' ),
'learn_more_link' => 'https://woocommerce.com/products/google-listings-and-ads?utm_source=storeprofiler&utm_medium=product&utm_campaign=freefeatures', 'learn_more_link' => 'https://woocommerce.com/products/google-listings-and-ads?utm_source=storeprofiler&utm_medium=product&utm_campaign=freefeatures',

View File

@ -113,10 +113,14 @@ test.describe( 'Store owner can complete the core profiler', () => {
page.getByRole( 'heading', { name: 'Plugins', exact: true } ) page.getByRole( 'heading', { name: 'Plugins', exact: true } )
).toBeVisible(); ).toBeVisible();
// confirm that some of the optional extensions aren't present // confirm that some of the optional extensions aren't present
await expect( page.getByText( 'MailPoet' ) ).toBeHidden();
await expect( page.getByText( 'Pinterest' ) ).toBeHidden();
await expect( await expect(
page.getByText( 'Google Listings & Ads' ) page.getByText( 'MailPoet for WooCommerce', { exact: true } )
).toBeHidden();
await expect(
page.getByText( 'Pinterest for WooCommerce', { exact: true } )
).toBeHidden();
await expect(
page.getByText( 'Google for WooCommerce', { exact: true } )
).toBeHidden(); ).toBeHidden();
} ); } );
@ -263,12 +267,18 @@ test.describe( 'Store owner can complete the core profiler', () => {
try { try {
await page await page
.getByText( .getByText(
'Drive sales with Google Listings & AdsReach millions of active shoppers across' 'Drive sales with Google for WooCommerceReach millions of active shoppers across'
) )
.getByRole( 'checkbox' ) .getByRole( 'checkbox' )
.check( { timeout: 2000 } ); .check( { timeout: 2000 } );
} catch ( e ) { } catch ( e ) {
console.log( 'Checkbox not present for Google Listings & Ads' ); // Temporary fix until rebranding is done.
await page
.getByText(
'Drive sales with Google Listings & AdsReach millions of active shoppers across'
)
.getByRole( 'checkbox' )
.check( { timeout: 2000 } );
} }
await page.getByRole( 'button', { name: 'Continue' } ).click(); await page.getByRole( 'button', { name: 'Continue' } ).click();
} ); } );
@ -307,8 +317,12 @@ test.describe( 'Store owner can complete the core profiler', () => {
await expect( await expect(
page.getByText( 'Pinterest for WooCommerce', { exact: true } ) page.getByText( 'Pinterest for WooCommerce', { exact: true } )
).toBeVisible(); ).toBeVisible();
await expect( await expect(
page.getByText( 'Google Listings and Ads', { exact: true } ) page.getByText(
/(Google for WooCommerce|Google Listings & Ads)/,
{ exact: true }
)
).toBeVisible(); ).toBeVisible();
await expect( page.getByText( 'MailPoet' ) ).toBeHidden(); await expect( page.getByText( 'MailPoet' ) ).toBeHidden();
await expect( page.getByText( 'Jetpack' ) ).toBeHidden(); await expect( page.getByText( 'Jetpack' ) ).toBeHidden();
@ -338,17 +352,15 @@ test.describe( 'Store owner can complete the core profiler', () => {
await test.step( 'Clean up installed extensions', async () => { await test.step( 'Clean up installed extensions', async () => {
await page.goto( 'wp-admin/plugins.php' ); await page.goto( 'wp-admin/plugins.php' );
await page.getByLabel( 'Deactivate Google Listings' ).click(); await page.getByLabel( 'Deactivate Google' ).click();
await expect( await expect(
page.getByText( 'Plugin deactivated.' ) page.getByText( 'Plugin deactivated.' )
).toBeVisible(); ).toBeVisible();
// delete plugin regularly or, if attempted, accept deleting data as well // delete plugin regularly or, if attempted, accept deleting data as well
try { try {
await page.getByLabel( 'Delete Google Listings' ).click(); await page.getByLabel( 'Delete Google' ).click();
await expect( await expect(
page.getByText( page.getByText( 'was successfully deleted.' )
'Google Listings and Ads was successfully deleted.'
)
).toBeVisible( { timeout: 5000 } ); ).toBeVisible( { timeout: 5000 } );
} catch ( e ) { } catch ( e ) {
await page await page
@ -358,9 +370,7 @@ test.describe( 'Store owner can complete the core profiler', () => {
.getByText( 'The selected plugin has been deleted.' ) .getByText( 'The selected plugin has been deleted.' )
.waitFor(); .waitFor();
} }
await expect( await expect( page.getByLabel( 'Delete Google' ) ).toBeHidden();
page.getByLabel( 'Delete Google Listings' )
).toBeHidden();
await page.getByLabel( 'Deactivate Pinterest for' ).click(); await page.getByLabel( 'Deactivate Pinterest for' ).click();
await expect( await expect(
page.getByText( 'Plugin deactivated.' ) page.getByText( 'Plugin deactivated.' )
@ -369,9 +379,7 @@ test.describe( 'Store owner can complete the core profiler', () => {
try { try {
await page.getByLabel( 'Delete Pinterest for' ).click(); await page.getByLabel( 'Delete Pinterest for' ).click();
await expect( await expect(
page.getByText( page.getByText( 'was successfully deleted.' )
'Pinterest for WooCommerce was successfully deleted.'
)
).toBeVisible( { timeout: 5000 } ); ).toBeVisible( { timeout: 5000 } );
} catch ( e ) { } catch ( e ) {
await page await page

View File

@ -16490,7 +16490,7 @@ index a27469c37c..b853bf7cd0 100644
@@ -97,8 +88,7 @@ function getMarketingItems( props ) { @@ -97,8 +88,7 @@ function getMarketingItems( props ) {
}, },
activePlugins.includes( 'google-listings-and-ads' ) && { activePlugins.includes( 'google-listings-and-ads' ) && {
title: __( 'Set up Google Listing & Ads', 'woocommerce' ), title: __( 'Set up Google for WooCommerce', 'woocommerce' ),
- link: - link:
- 'https://woocommerce.com/document/google-listings-and-ads/?utm_medium=product#get-started', - 'https://woocommerce.com/document/google-listings-and-ads/?utm_medium=product#get-started',
+ link: 'https://woocommerce.com/document/google-listings-and-ads/?utm_medium=product#get-started', + link: 'https://woocommerce.com/document/google-listings-and-ads/?utm_medium=product#get-started',