Rename "Install plugin" button text to "Install extension" in Marketing page (#39130)

This commit is contained in:
Gan Eng Chin 2023-07-07 20:31:57 +08:00 committed by GitHub
commit 4aab269c89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 5 deletions

View File

@ -95,7 +95,7 @@ export const SmartPluginCardBody = ( {
disabled={ buttonDisabled } disabled={ buttonDisabled }
onClick={ installAndActivate } onClick={ installAndActivate }
> >
{ __( 'Install plugin', 'woocommerce' ) } { __( 'Install extension', 'woocommerce' ) }
</Button> </Button>
); );
} }

View File

@ -58,7 +58,7 @@ describe( 'DiscoverTools component', () => {
} ); } );
describe( 'With plugins loaded', () => { describe( 'With plugins loaded', () => {
it( 'should render `direct_install: true` plugins with "Install plugin" button', () => { it( 'should render `direct_install: true` plugins with "Install extension" button', () => {
( (
useRecommendedPluginsWithoutChannels as jest.Mock useRecommendedPluginsWithoutChannels as jest.Mock
).mockReturnValue( { ).mockReturnValue( {
@ -92,7 +92,7 @@ describe( 'DiscoverTools component', () => {
} ); } );
render( <DiscoverTools /> ); render( <DiscoverTools /> );
// Assert that we have the "Sales channels" tab, the plugin name, the "Built by WooCommerce" pill, and the "Install plugin" 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 Listings and Ads' )
@ -100,7 +100,9 @@ describe( 'DiscoverTools component', () => {
expect( expect(
screen.getByText( 'Built by WooCommerce' ) screen.getByText( 'Built by WooCommerce' )
).toBeInTheDocument(); ).toBeInTheDocument();
expect( screen.getByText( 'Install plugin' ) ).toBeInTheDocument(); expect(
screen.getByText( 'Install extension' )
).toBeInTheDocument();
} ); } );
it( 'should render `direct_install: false` plugins with "View details" button', () => { it( 'should render `direct_install: false` plugins with "View details" button', () => {

View File

@ -117,7 +117,7 @@ export const PluginsTabPanel = ( {
installAndActivate( plugin ); installAndActivate( plugin );
} } } }
> >
{ __( 'Install plugin', 'woocommerce' ) } { __( 'Install extension', 'woocommerce' ) }
</Button> </Button>
); );
} }

View File

@ -0,0 +1,4 @@
Significance: minor
Type: update
Change button text from "Install plugin" to "Install extension" in Marketing page.