From 80bf228a656c02bd58463b1ffbabd8ed68f7f0f4 Mon Sep 17 00:00:00 2001 From: damencho Date: Fri, 21 Mar 2025 11:59:01 -0500 Subject: [PATCH] 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. --- tests/specs/2way/lockRoom.spec.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/specs/2way/lockRoom.spec.ts b/tests/specs/2way/lockRoom.spec.ts index 29f73cb4a1..395565f41e 100644 --- a/tests/specs/2way/lockRoom.spec.ts +++ b/tests/specs/2way/lockRoom.spec.ts @@ -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();