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 }
onClick={ installAndActivate }
>
{ __( 'Install plugin', 'woocommerce' ) }
{ __( 'Install extension', 'woocommerce' ) }
</Button>
);
}

View File

@ -58,7 +58,7 @@ describe( 'DiscoverTools component', () => {
} );
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
).mockReturnValue( {
@ -92,7 +92,7 @@ describe( 'DiscoverTools component', () => {
} );
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( 'Google Listings and Ads' )
@ -100,7 +100,9 @@ describe( 'DiscoverTools component', () => {
expect(
screen.getByText( 'Built by WooCommerce' )
).toBeInTheDocument();
expect( screen.getByText( 'Install plugin' ) ).toBeInTheDocument();
expect(
screen.getByText( 'Install extension' )
).toBeInTheDocument();
} );
it( 'should render `direct_install: false` plugins with "View details" button', () => {

View File

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