identation and update copy checks

This commit is contained in:
Gabriel Porfirio 2022-09-16 17:26:47 -03:00
parent 53673e848e
commit dd4dadde3e
2 changed files with 103 additions and 103 deletions

View File

@ -135,7 +135,7 @@ class Chat extends Page {
await this.waitAndClick(e.chatCopy);
const copiedText = await this.getCopiedText(context);
const check = copiedText.includes(`${p.fullName}: ${e.emojiSent}`);
const check = copiedText.includes(`${p.fullName}: ${e.frequentlyUsedEmoji}`);
expect(check).toBeTruthy();
}
@ -187,7 +187,7 @@ class Chat extends Page {
await this.waitAndClick(e.chatCopy);
const copiedText = await this.getCopiedText(context);
const check = copiedText.includes(`${p.fullName}: ${e.autoConvertEmojiMessage}`);
const check = copiedText.includes(`${p.fullName}: ${e.convertedEmojiMessage}`);
expect(check).toBeTruthy();
}

View File

@ -23,7 +23,7 @@ test.describe.parallel('Chat', () => {
await chat.clearChat();
});
test.only('Copy chat', async ({ browser, context, page }, testInfo) => {
test('Copy chat', async ({ browser, context, page }, testInfo) => {
test.fixme(testInfo.project.use.headless, 'Only works in headed mode');
const chat = new Chat(browser, page);
await chat.init(true, true);