From 0984f59645c651a0a577cd2a7791f7f674536b9b Mon Sep 17 00:00:00 2001 From: Gabriel Porfirio Date: Fri, 16 Sep 2022 18:02:32 -0300 Subject: [PATCH] await to check copy chat --- bigbluebutton-tests/playwright/chat/chat.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bigbluebutton-tests/playwright/chat/chat.js b/bigbluebutton-tests/playwright/chat/chat.js index 9e74a5b90f..e00eb8e927 100644 --- a/bigbluebutton-tests/playwright/chat/chat.js +++ b/bigbluebutton-tests/playwright/chat/chat.js @@ -56,7 +56,7 @@ class Chat extends Page { // enable access to browser context clipboard const copiedText = await this.getCopiedText(context); const check = copiedText.includes(`${p.fullName}: ${e.message}`); - expect(check).toBeTruthy(); + await expect(check).toBeTruthy(); } async saveChat(testInfo) { @@ -136,7 +136,7 @@ class Chat extends Page { const copiedText = await this.getCopiedText(context); const check = copiedText.includes(`${p.fullName}: ${e.frequentlyUsedEmoji}`); - expect(check).toBeTruthy(); + await expect(check).toBeTruthy(); } async emojiSaveChat(testInfo) { @@ -188,7 +188,7 @@ class Chat extends Page { const copiedText = await this.getCopiedText(context); const check = copiedText.includes(`${p.fullName}: ${e.convertedEmojiMessage}`); - expect(check).toBeTruthy(); + await expect(check).toBeTruthy(); } async autoConvertEmojiSaveChat(testInfo) {