mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
fix(experience): fix the ut randomly fail issue (#4913)
fix the ut randomly fail issue
This commit is contained in:
parent
d0828834eb
commit
7379cfe4bd
1 changed files with 7 additions and 9 deletions
|
@ -169,15 +169,13 @@ describe('UsernamePasswordSignInForm', () => {
|
|||
fireEvent.submit(submitButton);
|
||||
});
|
||||
|
||||
act(() => {
|
||||
void waitFor(() => {
|
||||
expect(signInWithPasswordIdentifier).toBeCalledWith({
|
||||
[type]:
|
||||
type === SignInIdentifier.Phone
|
||||
? `${getDefaultCountryCallingCode()}${identifier}`
|
||||
: identifier,
|
||||
password: 'password',
|
||||
});
|
||||
await waitFor(() => {
|
||||
expect(signInWithPasswordIdentifier).toBeCalledWith({
|
||||
[type]:
|
||||
type === SignInIdentifier.Phone
|
||||
? `${getDefaultCountryCallingCode()}${identifier}`
|
||||
: identifier,
|
||||
password: 'password',
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue