Skip to content

Commit fdcfc99

Browse files
dannyphan2000syadupathi-sf
authored andcommitted
@W-21094171: Fix Resend Code for OTP modal
Signed-off-by: d.phan <d.phan@salesforce.com>
1 parent ea529fd commit fdcfc99

File tree

1 file changed

+3
-3
lines changed
  • packages/template-retail-react-app/app/components/otp-auth

1 file changed

+3
-3
lines changed

packages/template-retail-react-app/app/components/otp-auth/index.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ describe('OtpAuth', () => {
102102

103103
describe('Component Rendering', () => {
104104
test('renders OTP form with all elements', () => {
105-
renderWithProviders(<WrapperComponent />)
105+
renderWithProviders(<WrapperComponent resendCooldownDuration={0} />)
106106

107107
expect(screen.getByText("Confirm it's you")).toBeInTheDocument()
108108
expect(
@@ -127,7 +127,7 @@ describe('OtpAuth', () => {
127127
})
128128

129129
test('renders buttons with correct styling', () => {
130-
renderWithProviders(<WrapperComponent />)
130+
renderWithProviders(<WrapperComponent resendCooldownDuration={0} />)
131131

132132
const guestButton = screen.getByRole('button', {name: /Checkout as a Guest/i})
133133
const resendButton = screen.getByRole('button', {name: /Resend Code/i})
@@ -623,7 +623,7 @@ describe('OtpAuth', () => {
623623
})
624624

625625
test('buttons have accessible text', () => {
626-
renderWithProviders(<WrapperComponent />)
626+
renderWithProviders(<WrapperComponent resendCooldownDuration={0} />)
627627

628628
expect(screen.getByRole('button', {name: /Checkout as a Guest/i})).toBeInTheDocument()
629629
expect(screen.getByRole('button', {name: /Resend Code/i})).toBeInTheDocument()

0 commit comments

Comments
 (0)