Skip to content

Commit eb67152

Browse files
committed
move renderWithProviders after getConfig is mocked in 'Allows passwordless login' test
1 parent bba25a2 commit eb67152

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/template-retail-react-app/app/hooks/use-auth-modal.test.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -238,11 +238,6 @@ describe('Passwordless enabled', () => {
238238
})
239239

240240
test('Allows passwordless login', async () => {
241-
const {user} = renderWithProviders(<MockedComponent isPasswordlessEnabled={true} />, {
242-
wrapperProps: {
243-
bypassAuth: false
244-
}
245-
})
246241
// Disable passkey to test passwordless in isolation
247242
getConfig.mockReturnValue({
248243
...mockConfig,
@@ -254,6 +249,12 @@ describe('Passwordless enabled', () => {
254249
}
255250
}
256251
})
252+
const {user} = renderWithProviders(<MockedComponent isPasswordlessEnabled={true} />, {
253+
wrapperProps: {
254+
bypassAuth: false
255+
}
256+
})
257+
257258
const validEmail = 'test@salesforce.com'
258259

259260
// open the modal

0 commit comments

Comments
 (0)