From 1d22712397554fe8876d10d4bef78ae4d258caae Mon Sep 17 00:00:00 2001 From: Tiffany Larson Date: Fri, 27 Sep 2024 15:06:03 -0400 Subject: [PATCH] Fix failing tests --- .../classic/__snapshots__/sign_up_pane.test.jsx.snap | 2 ++ src/__tests__/engine/classic/sign_up_pane.test.jsx | 10 ++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/__tests__/engine/classic/__snapshots__/sign_up_pane.test.jsx.snap b/src/__tests__/engine/classic/__snapshots__/sign_up_pane.test.jsx.snap index 6c2c15ed9..a24a007d7 100644 --- a/src/__tests__/engine/classic/__snapshots__/sign_up_pane.test.jsx.snap +++ b/src/__tests__/engine/classic/__snapshots__/sign_up_pane.test.jsx.snap @@ -214,6 +214,7 @@ exports[`SignUpPane shows the Captcha pane 1`] = ` /> mockComponent('email_pane')); jest.mock('field/password/password_pane', () => mockComponent('password_pane')); @@ -8,7 +9,7 @@ jest.mock('field/username/username_pane', () => mockComponent('username_pane')); jest.mock('field/custom_input', () => mockComponent('custom_input')); jest.mock('core/index', () => ({ - captcha: jest.fn() + signupCaptcha: jest.fn() })); jest.mock('engine/classic', () => ({ @@ -38,6 +39,7 @@ describe('SignUpPane', () => { str: (...keys) => keys.join(','), html: (...keys) => keys.join(',') }, + flow: Flow.SIGNUP, model: 'model', emailInputPlaceholder: 'emailInputPlaceholder', onlyEmail: true, @@ -58,7 +60,7 @@ describe('SignUpPane', () => { }); it('shows the Captcha pane', () => { - require('core/index').captcha.mockReturnValue({ + require('core/index').signupCaptcha.mockReturnValue({ get() { return true; } @@ -72,7 +74,7 @@ describe('SignUpPane', () => { }); it('hides the Captcha pane for SSO connections', () => { - require('core/index').captcha.mockReturnValue({ + require('core/index').signupCaptcha.mockReturnValue({ get() { return true; } @@ -86,7 +88,7 @@ describe('SignUpPane', () => { }); it('shows the Captcha pane for SSO (ADFS) connections', () => { - require('core/index').captcha.mockReturnValue({ + require('core/index').signupCaptcha.mockReturnValue({ get() { return true; }