Rename "Install plugin" button text to "Install extension" in Marketing page (#39130)
This commit is contained in:
commit
4aab269c89
|
@ -95,7 +95,7 @@ export const SmartPluginCardBody = ( {
|
|||
disabled={ buttonDisabled }
|
||||
onClick={ installAndActivate }
|
||||
>
|
||||
{ __( 'Install plugin', 'woocommerce' ) }
|
||||
{ __( 'Install extension', 'woocommerce' ) }
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
|
@ -117,7 +117,7 @@ export const PluginsTabPanel = ( {
|
|||
installAndActivate( plugin );
|
||||
} }
|
||||
>
|
||||
{ __( 'Install plugin', 'woocommerce' ) }
|
||||
{ __( 'Install extension', 'woocommerce' ) }
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
Significance: minor
|
||||
Type: update
|
||||
|
||||
Change button text from "Install plugin" to "Install extension" in Marketing page.
|
Loading…
Reference in New Issue