identation and update copy checks
This commit is contained in:
parent
53673e848e
commit
dd4dadde3e
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user