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,8 +169,7 @@ describe('UsernamePasswordSignInForm', () => {
|
|||
fireEvent.submit(submitButton);
|
||||
});
|
||||
|
||||
act(() => {
|
||||
void waitFor(() => {
|
||||
await waitFor(() => {
|
||||
expect(signInWithPasswordIdentifier).toBeCalledWith({
|
||||
[type]:
|
||||
type === SignInIdentifier.Phone
|
||||
|
@ -180,7 +179,6 @@ describe('UsernamePasswordSignInForm', () => {
|
|||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
test('should switch to single sign on form when single sign on is enabled for a give email', async () => {
|
||||
const { getByText, queryByText, container } = renderPasswordSignInForm(
|
||||
|
|
Loading…
Reference in a new issue