Skip to content

Commit

Permalink
Fix the typo for transaction controls label (#7979)
Browse files Browse the repository at this point in the history
Co-authored-by: Kārlis Janisels <[email protected]>
  • Loading branch information
KarlisJ and Kārlis Janisels authored Jan 5, 2024
1 parent c56dbcf commit c02877a
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 17 deletions.
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

0 comments on commit c02877a

Please sign in to comment.