Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the typo for transaction controls label #7979

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog/fix-7964-typo-for-transaction-actions
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: Fixed a typo


2 changes: 1 addition & 1 deletion client/payment-details/summary/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ const PaymentDetailsSummary: React.FC< PaymentDetailsSummaryProps > = ( {
<DropdownMenu
icon={ moreVertical }
label={ __(
'Translation actions',
'Transaction actions',
'woocommerce-payments'
) }
popoverProps={ {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ exports[`PaymentDetailsSummary correctly renders a charge 1`] = `
<button
aria-expanded="false"
aria-haspopup="true"
aria-label="Translation actions"
aria-label="Transaction actions"
class="components-button components-dropdown-menu__toggle has-icon"
type="button"
>
Expand Down Expand Up @@ -1002,7 +1002,7 @@ exports[`PaymentDetailsSummary order missing notice does not render notice if or
<button
aria-expanded="false"
aria-haspopup="true"
aria-label="Translation actions"
aria-label="Transaction actions"
class="components-button components-dropdown-menu__toggle has-icon"
type="button"
>
Expand Down Expand Up @@ -1297,7 +1297,7 @@ exports[`PaymentDetailsSummary order missing notice renders notice if order miss
<button
aria-expanded="false"
aria-haspopup="true"
aria-label="Translation actions"
aria-label="Transaction actions"
class="components-button components-dropdown-menu__toggle has-icon"
type="button"
>
Expand Down Expand Up @@ -1615,7 +1615,7 @@ exports[`PaymentDetailsSummary renders a charge with subscriptions 1`] = `
<button
aria-expanded="false"
aria-haspopup="true"
aria-label="Translation actions"
aria-label="Transaction actions"
class="components-button components-dropdown-menu__toggle has-icon"
type="button"
>
Expand Down Expand Up @@ -2454,7 +2454,7 @@ exports[`PaymentDetailsSummary renders partially refunded information for a char
<button
aria-expanded="false"
aria-haspopup="true"
aria-label="Translation actions"
aria-label="Transaction actions"
class="components-button components-dropdown-menu__toggle has-icon"
type="button"
>
Expand Down Expand Up @@ -2749,7 +2749,7 @@ exports[`PaymentDetailsSummary renders the Tap to Pay channel from metadata 1`]
<button
aria-expanded="false"
aria-haspopup="true"
aria-label="Translation actions"
aria-label="Transaction actions"
class="components-button components-dropdown-menu__toggle has-icon"
type="button"
>
Expand Down Expand Up @@ -3044,7 +3044,7 @@ exports[`PaymentDetailsSummary renders the information of a dispute-reversal cha
<button
aria-expanded="false"
aria-haspopup="true"
aria-label="Translation actions"
aria-label="Transaction actions"
class="components-button components-dropdown-menu__toggle has-icon"
type="button"
>
Expand Down
16 changes: 8 additions & 8 deletions client/payment-details/summary/test/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ describe( 'PaymentDetailsSummary', () => {
// Refund menu is not rendered
expect(
screen.queryByRole( 'button', {
name: /Translation actions/i,
name: /Transaction actions/i,
} )
).toBeNull();
} );
Expand Down Expand Up @@ -694,7 +694,7 @@ describe( 'PaymentDetailsSummary', () => {

// Refund menu is rendered
screen.getByRole( 'button', {
name: /Translation actions/i,
name: /Transaction actions/i,
} );
} );

Expand Down Expand Up @@ -728,7 +728,7 @@ describe( 'PaymentDetailsSummary', () => {
// Refund menu is not rendered
expect(
screen.queryByRole( 'button', {
name: /Translation actions/i,
name: /Transaction actions/i,
} )
).toBeNull();
} );
Expand Down Expand Up @@ -767,7 +767,7 @@ describe( 'PaymentDetailsSummary', () => {
// Refund menu is not rendered
expect(
screen.queryByRole( 'button', {
name: /Translation actions/i,
name: /Transaction actions/i,
} )
).toBeNull();
} );
Expand Down Expand Up @@ -807,7 +807,7 @@ describe( 'PaymentDetailsSummary', () => {
// Refund menu is not rendered
expect(
screen.queryByRole( 'button', {
name: /Translation actions/i,
name: /Transaction actions/i,
} )
).toBeNull();
} );
Expand Down Expand Up @@ -843,7 +843,7 @@ describe( 'PaymentDetailsSummary', () => {

// Refund menu is rendered
screen.getByRole( 'button', {
name: /Translation actions/i,
name: /Transaction actions/i,
} );
} );

Expand Down Expand Up @@ -875,7 +875,7 @@ describe( 'PaymentDetailsSummary', () => {

// Refund menu is rendered
screen.getByRole( 'button', {
name: /Translation actions/i,
name: /Transaction actions/i,
} );
} );

Expand Down Expand Up @@ -908,7 +908,7 @@ describe( 'PaymentDetailsSummary', () => {

// Refund menu is rendered
screen.getByRole( 'button', {
name: /Translation actions/i,
name: /Transaction actions/i,
} );
} );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ exports[`Payment details page should match the snapshot - Payment Intent query p
<button
aria-expanded="false"
aria-haspopup="true"
aria-label="Translation actions"
aria-label="Transaction actions"
class="components-button components-dropdown-menu__toggle has-icon"
type="button"
>
Expand Down
Loading