0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-27 21:39:16 -05:00

chore(test): wait for network idle to ensure the sign-in request to be handled (#4749)

This commit is contained in:
Xiao Yijun 2023-10-26 18:17:03 +08:00 committed by GitHub
parent 1fcc4152af
commit 6b99cc1f2e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,6 +58,8 @@ describe('MFA - User controlled', () => {
// Wait for the TOTP page rendered
await waitFor(1000);
await experience.toClick('div[role=button][class$=skipButton]');
// Wait for the sign-in requests to be handled
await experience.page.waitForNetworkIdle();
await experience.verifyThenEnd();
await deleteUser(user.id);
});