Skip to content

Commit 3e3b02a

Browse files
wjrosadaledupreez
andauthored
Copy updates for the Optimized Checkout (#4558)
* Copy updates for the Optimized Checkout * Additional changes * Changing the setting description * Changelog and readme entries * Fix e2e tests + CSS * Update changelog.txt Co-authored-by: daledupreez <[email protected]> * Readme entry update * Update client/settings/payment-settings/promotional-banner/oc-promotion-banner.js Co-authored-by: daledupreez <[email protected]> * Fix promotional banner title --------- Co-authored-by: daledupreez <[email protected]>
1 parent 06d6c04 commit 3e3b02a

File tree

8 files changed

+16
-12
lines changed

8 files changed

+16
-12
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*** Changelog ***
22

33
= 9.8.0 - xxxx-xx-xx =
4+
* Update - Copy for the Optimized Checkout settings and notices
45
* Dev - Implements WooCommerce constants for the tax statuses
56
* Add - Adds the current setting value for the Optimized Checkout to the Stripe System Status Report data
67
* Add - A new pill to the payment methods page to indicate the credit card requirement when the Optimized Checkout feature is enabled

client/blocks/upe/styles.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ button.stripe-gateway-stripelink-modal-trigger:hover {
2424
justify-content: center;
2525
}
2626
/* stylelint-disable selector-id-pattern */
27-
#radio-control-wc-payment-method-options-stripe__content.single-payment-element {
27+
#radio-control-wc-payment-method-options-stripe__content.optimized-checkout-element {
2828
padding-top: 1.4em;
2929

3030
.content {

client/settings/advanced-settings-section/__tests__/optimized-checkout-feature.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import UpeToggleContext from 'wcstripe/settings/upe-toggle/context';
66

77
jest.useFakeTimers();
88

9-
describe( 'Single Payment Element feature setting', () => {
9+
describe( 'Optimized Checkout Element feature setting', () => {
1010
it( 'should render', () => {
1111
render( <OptimizedCheckoutFeature /> );
1212

@@ -34,7 +34,7 @@ describe( 'Single Payment Element feature setting', () => {
3434
);
3535

3636
const checkbox = screen.getByTestId(
37-
'single-payment-element-checkbox'
37+
'optimized-checkout-element-checkbox'
3838
);
3939

4040
userEvent.click( checkbox );

client/settings/advanced-settings-section/optimized-checkout-feature.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ const OptimizedCheckoutFeature = () => {
6868
) }
6969
</h4>
7070
<CheckboxControl
71-
data-testid="single-payment-element-checkbox"
71+
data-testid="optimized-checkout-element-checkbox"
7272
label={ __(
73-
'Automatically display the most relevant payment methods',
73+
"Dynamically display the most relevant payment methods you've enabled",
7474
'woocommerce-gateway-stripe'
7575
) }
7676
help={ createInterpolateElement(
7777
__(
78-
"Maximize conversions by enabling Stripe's Optimized Checkout Suite. Display the most relevant payment methods for each of your customers automatically. <learnMoreLink>Learn more</learnMoreLink>.",
78+
"Stripe's Optimized Checkout Suite uses AI models to order the most relevant payment methods you've enabled for each of your customers dynamically. <learnMoreLink>Learn more</learnMoreLink>.",
7979
'woocommerce-gateway-stripe'
8080
),
8181
{

client/settings/payment-settings/promotional-banner/__tests__/oc-promotion-banner.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ describe( 'OC promotional banner', () => {
4343
);
4444
expect(
4545
getByText(
46-
"Increase conversions with Stripe's Optimized Checkout Suite"
46+
"Increase conversion with Stripe's Optimized Checkout Suite"
4747
)
4848
).toBeInTheDocument();
4949
expect(
5050
getByText(
51-
/Optimize your checkout for more sales by automatically displaying the most relevant payment methods for each customer./
51+
/Optimize your checkout experience for more sales by dynamically displaying the most relevant payment methods you've enabled for each customer./
5252
)
5353
).toBeInTheDocument();
5454
} );

client/settings/payment-settings/promotional-banner/oc-promotion-banner.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,15 +89,15 @@ export const OCPromotionBanner = ( {
8989
<CardColumn>
9090
<TitleBNPL>
9191
{ __(
92-
"Increase conversions with Stripe's Optimized Checkout Suite",
92+
"Increase conversion with Stripe's Optimized Checkout Suite",
9393
'woocommerce-gateway-stripe'
9494
) }
9595
</TitleBNPL>
9696
<p>
9797
{ __( '', 'woocommerce-gateway-stripe' ) }
9898
{ interpolateComponents( {
9999
mixedString: __(
100-
"Optimize your checkout for more sales by automatically displaying the most relevant payment methods for each customer. {{docLink}}Learn more{{/docLink}} about Stripe's Optimized Checkout Suite.",
100+
"Optimize your checkout experience for more sales by dynamically displaying the most relevant payment methods you've enabled for each customer. {{docLink}}Learn more{{/docLink}} about Stripe's Optimized Checkout Suite.",
101101
'woocommerce-gateway-stripe'
102102
),
103103
components: {

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ If you get stuck, you can ask for help in the [Plugin Forum](https://wordpress.o
111111
== Changelog ==
112112

113113
= 9.8.0 - xxxx-xx-xx =
114+
* Update - Copy for the Optimized Checkout settings and notices
114115
* Dev - Implements WooCommerce constants for the tax statuses
115116
* Add - Adds the current setting value for the Optimized Checkout to the Stripe System Status Report data
116117
* Add - A new pill to the payment methods page to indicate the credit card requirement when the Optimized Checkout feature is enabled

tests/e2e/tests/optimized-checkout.setup.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ setup(
1414
'/wp-admin/admin.php?page=wc-settings&tab=checkout&section=stripe&panel=settings'
1515
);
1616

17-
const checkbox = page.getByTestId( 'single-payment-element-checkbox' );
17+
const checkbox = page.getByTestId(
18+
'optimized-checkout-element-checkbox'
19+
);
1820
const isChecked = await checkbox.isChecked();
1921

2022
if ( ! isChecked ) {
@@ -26,7 +28,7 @@ setup(
2628
)
2729
).toBeVisible();
2830
await expect(
29-
page.getByTestId( 'single-payment-element-checkbox' )
31+
page.getByTestId( 'optimized-checkout-element-checkbox' )
3032
).toBeChecked();
3133
}
3234

0 commit comments

Comments
 (0)