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 }
|
disabled={ buttonDisabled }
|
||||||
onClick={ installAndActivate }
|
onClick={ installAndActivate }
|
||||||
>
|
>
|
||||||
{ __( 'Install plugin', 'woocommerce' ) }
|
{ __( 'Install extension', 'woocommerce' ) }
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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', () => {
|
||||||
|
|
|
@ -117,7 +117,7 @@ export const PluginsTabPanel = ( {
|
||||||
installAndActivate( plugin );
|
installAndActivate( plugin );
|
||||||
} }
|
} }
|
||||||
>
|
>
|
||||||
{ __( 'Install plugin', 'woocommerce' ) }
|
{ __( 'Install extension', 'woocommerce' ) }
|
||||||
</Button>
|
</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