fix(tests): Make sure we give time dialog to submit password.

Give time for the dialog to disappear before entering the new password when retrying or checking for wrong password.
This commit is contained in:
damencho
2025-03-21 11:59:01 -05:00
committed by Дамян Минков
parent 62e0f09f98
commit 80bf228a65

View File

@@ -31,6 +31,9 @@ describe('Lock Room', () => {
await p2PasswordDialog.waitForDialog();
await p2PasswordDialog.submitPassword(`${ctx.roomKey}1234`);
// give sometime to the password prompt to disappear and send the password
await p2.driver.pause(500);
// wait for password prompt
await p2PasswordDialog.waitForDialog();
await p2PasswordDialog.submitPassword(ctx.roomKey);
@@ -105,6 +108,9 @@ describe('Lock Room', () => {
await p2PasswordDialog.waitForDialog();
await p2PasswordDialog.submitPassword(`${ctx.roomKey}1234`);
// give sometime to the password prompt to disappear and send the password
await p2.driver.pause(500);
// wait for password prompt
await p2PasswordDialog.waitForDialog();