Rename "Install plugin" button text to "Install extension".

This commit is contained in:
Gan Eng Chin 2023-07-06 23:50:56 +08:00
parent 16d50edc8b
commit 990af1f534
No known key found for this signature in database
GPG Key ID: 94D5D972860ADB01
3 changed files with 7 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>
); );
} }