Skip to content

Commit ae35fb2

Browse files
authored
Smart Checkout (Optimized Checkout) design updates (#4278)
* Smart Checkout design updates * Fix tests * Readme and changelog entries
1 parent 814f756 commit ae35fb2

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
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.5.0 - xxxx-xx-xx =
4+
* Tweak - Updates the "Smart Checkout" setting name to "Optimized Checkout", and the description accordingly.
45
* Fix - Checks for the existence of the WC_Stripe_Feature_Flags class before including it during extension initialization.
56
* Dev - Implements the new Stripe order class into the new checkout experience files.
67
* Dev - Splits the code coverage GitHub Actions Workflow into two separate actions.

client/settings/advanced-settings-section/__tests__/index.test.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ describe( 'AdvancedSettings', () => {
6565
render( <AdvancedSettings /> );
6666

6767
expect(
68-
screen.queryByText( 'Enable Smart Checkout (Recommended)' )
68+
screen.queryByText(
69+
'Enable Optimized Checkout Suite (recommended)'
70+
)
6971
).not.toBeInTheDocument();
7072
} );
7173

@@ -75,7 +77,9 @@ describe( 'AdvancedSettings', () => {
7577
render( <AdvancedSettings /> );
7678

7779
expect(
78-
screen.queryByText( 'Enable Smart Checkout (Recommended)' )
80+
screen.queryByText(
81+
'Enable Optimized Checkout Suite (recommended)'
82+
)
7983
).toBeInTheDocument();
8084
} );
8185

@@ -88,7 +92,7 @@ describe( 'AdvancedSettings', () => {
8892

8993
expect(
9094
screen.queryByText(
91-
'This will appear as the title of the Smart Checkout payment element on checkout.'
95+
'This will appear as the title of the Optimized Checkout Suite payment element on checkout.'
9296
)
9397
).toBeInTheDocument();
9498
expect( screen.queryByLabelText( 'Title' ) ).toBeInTheDocument();

client/settings/advanced-settings-section/__tests__/single-payment-element-feature.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ describe( 'Single Payment Element feature setting', () => {
1111
render( <SinglePaymentElementFeature /> );
1212

1313
expect(
14-
screen.queryByText( 'Enable Smart Checkout (Recommended)' )
14+
screen.queryByText(
15+
'Enable Optimized Checkout Suite (recommended)'
16+
)
1517
).toBeInTheDocument();
1618
} );
1719

client/settings/advanced-settings-section/single-payment-element-feature.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ const SinglePaymentElementFeature = () => {
2323
<>
2424
<h4>
2525
{ __(
26-
'Enable Smart Checkout (Recommended)',
26+
'Enable Optimized Checkout Suite (recommended)',
2727
'woocommerce-gateway-stripe'
2828
) }
2929
</h4>
3030
<CheckboxControl
3131
data-testid="single-payment-element-checkbox"
3232
label={ __(
33-
'Enable Smart Checkout to display payment methods',
33+
'Automatically display the most relevant payment methods',
3434
'woocommerce-gateway-stripe'
3535
) }
3636
help={ createInterpolateElement(
3737
__(
38-
"Automatically display the most relevant payment methods for each customer with Stripe's AI-driven Dynamic Payment Methods to optimize your checkout for conversions. <learnMoreLink>Learn more</learnMoreLink>.",
38+
"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>.",
3939
'woocommerce-gateway-stripe'
4040
),
4141
{
@@ -51,7 +51,7 @@ const SinglePaymentElementFeature = () => {
5151
{ isSPEEnabled && (
5252
<TextControl
5353
help={ __(
54-
'This will appear as the title of the Smart Checkout payment element on checkout.',
54+
'This will appear as the title of the Optimized Checkout Suite payment element on checkout.',
5555
'woocommerce-gateway-stripe'
5656
) }
5757
label={ __( 'Title', 'woocommerce-gateway-stripe' ) }

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.5.0 - xxxx-xx-xx =
114+
* Tweak - Updates the "Smart Checkout" setting name to "Optimized Checkout", and the description accordingly.
114115
* Fix - Checks for the existence of the WC_Stripe_Feature_Flags class before including it during extension initialization.
115116
* Dev - Implements the new Stripe order class into the new checkout experience files.
116117
* Dev - Splits the code coverage GitHub Actions Workflow into two separate actions.

0 commit comments

Comments
 (0)