await to check copy chat

This commit is contained in:
Gabriel Porfirio 2022-09-16 18:02:32 -03:00
parent dd4dadde3e
commit 0984f59645

View File

@ -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) {