fix: typos in shipping settings (#33836)

This commit is contained in:
RJ 2022-07-13 23:41:22 +08:00 committed by GitHub
parent 70ea12eb81
commit 6af3ea5867
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 24 additions and 20 deletions

View File

@ -39,12 +39,12 @@ const WooCommerceServicesItem: React.FC< {
<img
className="woocommerce-services-item__logo"
src={ WooIcon }
alt="Woocommerce Service Logo"
alt="WooCommerce Service Logo"
/>
</div>
<div className="woocommerce-list__item-text">
<span className="woocommerce-list__item-title">
{ __( 'Woocommerce Shipping', 'woocommerce' ) }
{ __( 'WooCommerce Shipping', 'woocommerce' ) }
<Pill>{ __( 'Recommended', 'woocommerce' ) }</Pill>
</span>
<span className="woocommerce-list__item-content">

View File

@ -247,7 +247,7 @@ export const ShippingTour = () => {
<br />
<span>
{ __(
'A shipping zone is a geography area where a certain set of shippping methods are offered.',
'A shipping zone is a geographic area where a certain set of shipping methods are offered.',
'woocommerce'
) }
</span>
@ -265,7 +265,7 @@ export const ShippingTour = () => {
heading: __( 'Shipping methods', 'woocommerce' ),
descriptions: {
desktop: __(
'We defaulted to some recommended shippping methods based on your store location, but you can manage them at any time within each shipping zone settings.',
'We defaulted to some recommended shipping methods based on your store location, but you can manage them at any time within each shipping zone settings.',
'woocommerce'
),
},
@ -310,7 +310,7 @@ export const ShippingTour = () => {
},
meta: {
name: 'shipping-recommendations',
heading: __( 'Woocommerce Shipping', 'woocommerce' ),
heading: __( 'WooCommerce Shipping', 'woocommerce' ),
descriptions: {
desktop: __(
'If youd like to speed up your process and print your shipping label straight from your WooCommerce dashboard, WooCommerce Shipping may be for you! ',

View File

@ -48,7 +48,7 @@ describe( 'ShippingRecommendations', () => {
render( <ShippingRecommendations /> );
expect(
screen.queryByText( 'Woocommerce Shipping' )
screen.queryByText( 'WooCommerce Shipping' )
).not.toBeInTheDocument();
} );
@ -66,7 +66,7 @@ describe( 'ShippingRecommendations', () => {
render( <ShippingRecommendations /> );
expect(
screen.queryByText( 'Woocommerce Shipping' )
screen.queryByText( 'WooCommerce Shipping' )
).not.toBeInTheDocument();
} );
@ -82,7 +82,7 @@ describe( 'ShippingRecommendations', () => {
render( <ShippingRecommendations /> );
expect(
screen.queryByText( 'Woocommerce Shipping' )
screen.queryByText( 'WooCommerce Shipping' )
).not.toBeInTheDocument();
} );
@ -90,7 +90,7 @@ describe( 'ShippingRecommendations', () => {
render( <ShippingRecommendations /> );
expect(
screen.queryByText( 'Woocommerce Shipping' )
screen.queryByText( 'WooCommerce Shipping' )
).toBeInTheDocument();
} );
} );

View File

@ -18,7 +18,7 @@ describe( 'WooCommerceServicesItem', () => {
render( <WooCommerceServicesItem isWCSInstalled={ false } /> );
expect(
screen.queryByText( 'Woocommerce Shipping' )
screen.queryByText( 'WooCommerce Shipping' )
).toBeInTheDocument();
expect(
@ -30,7 +30,7 @@ describe( 'WooCommerceServicesItem', () => {
render( <WooCommerceServicesItem isWCSInstalled={ true } /> );
expect(
screen.queryByText( 'Woocommerce Shipping' )
screen.queryByText( 'WooCommerce Shipping' )
).toBeInTheDocument();
expect(

View File

@ -17,7 +17,7 @@ jest.mock( '@wordpress/data', () => ( {
jest.mock( '@wordpress/element', () => ( {
...jest.requireActual( '@wordpress/element' ),
Suspense: () => <div>Woocommerce Shipping</div>,
Suspense: () => <div>WooCommerce Shipping</div>,
} ) );
const eligibleSelectReturn = {
@ -46,7 +46,7 @@ describe( 'ShippingRecommendations', () => {
/>
);
expect( queryByText( 'Woocommerce Shipping' ) ).not.toBeInTheDocument();
expect( queryByText( 'WooCommerce Shipping' ) ).not.toBeInTheDocument();
} );
it( 'should not render when zone_id is not empty', () => {
@ -59,7 +59,7 @@ describe( 'ShippingRecommendations', () => {
/>
);
expect( queryByText( 'Woocommerce Shipping' ) ).not.toBeInTheDocument();
expect( queryByText( 'WooCommerce Shipping' ) ).not.toBeInTheDocument();
} );
it( 'should not render when woocommerce_show_marketplace_suggestions is "no"', () => {
@ -77,7 +77,7 @@ describe( 'ShippingRecommendations', () => {
zone_id={ undefined }
/>
);
expect( queryByText( 'Woocommerce Shipping' ) ).not.toBeInTheDocument();
expect( queryByText( 'WooCommerce Shipping' ) ).not.toBeInTheDocument();
} );
it( 'should not render when user is not allowed', () => {
@ -98,7 +98,7 @@ describe( 'ShippingRecommendations', () => {
zone_id={ undefined }
/>
);
expect( queryByText( 'Woocommerce Shipping' ) ).not.toBeInTheDocument();
expect( queryByText( 'WooCommerce Shipping' ) ).not.toBeInTheDocument();
} );
it( 'should render WCS', async () => {
@ -111,6 +111,6 @@ describe( 'ShippingRecommendations', () => {
/>
);
expect( getByText( 'Woocommerce Shipping' ) ).toBeInTheDocument();
expect( getByText( 'WooCommerce Shipping' ) ).toBeInTheDocument();
} );
} );

View File

@ -46,7 +46,7 @@ describe( 'ShippingRecommendations', () => {
render( <ShippingRecommendations /> );
expect(
screen.queryByText( 'Woocommerce Shipping' )
screen.queryByText( 'WooCommerce Shipping' )
).not.toBeInTheDocument();
} );
@ -54,7 +54,7 @@ describe( 'ShippingRecommendations', () => {
render( <ShippingRecommendations /> );
expect(
screen.queryByText( 'Woocommerce Shipping' )
screen.queryByText( 'WooCommerce Shipping' )
).toBeInTheDocument();
} );

View File

@ -57,7 +57,7 @@ const WooCommerceServicesItem: React.FC< {
</div>
<div className="woocommerce-list__item-text">
<span className="woocommerce-list__item-title">
{ __( 'Woocommerce Shipping', 'woocommerce' ) }
{ __( 'WooCommerce Shipping', 'woocommerce' ) }
<Pill>{ __( 'Recommended', 'woocommerce' ) }</Pill>
</span>
<span className="woocommerce-list__item-content">

View File

@ -0,0 +1,4 @@
Significance: patch
Type: fix
Fixed some incorrect spellings in the shipping settings areas.