Skip to content

Commit

Permalink
Merge branch 'dev' into luis/playwright-report
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm authored Oct 14, 2024
2 parents 1819954 + 6f931c0 commit f59906f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions playwright/specs/03-friends-two-instances.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1582,15 +1582,15 @@ test.describe("Two instances tests - Friends and Chats", () => {

await chatsMainPageSecond.openEmojiPicker();
const emojiPickerSecond = new EmojiPicker(page2, viewport);
await emojiPickerSecond.selectEmoji("πŸ˜‚");
await emojiPickerSecond.selectEmoji("πŸ˜€");
await chatsMainPageSecond.buttonChatbarSendMessage.click();

// Validate emoji sent is displayed on local and remote sides
await expect(chatsMainPageSecond.messageBubbleContent.last()).toHaveText(
"πŸ˜‚",
"πŸ˜€",
);
await expect(chatsMainPageFirst.messageBubbleContent.last()).toHaveText(
"πŸ˜‚",
"πŸ˜€",
);

// Change skin tone of emojis
Expand All @@ -1610,11 +1610,11 @@ test.describe("Two instances tests - Friends and Chats", () => {
// Change emoji size in emojis container view
await chatsMainPageSecond.openEmojiPicker();
await emojiPickerSecond.changeEmojiSizeView("16");
await emojiPickerSecond.validateSingleEmojiSize("πŸ˜€", "16px");
await emojiPickerSecond.validateSingleEmojiSize("🀣", "16px");
await emojiPickerSecond.changeEmojiSizeView("45");
await emojiPickerSecond.validateSingleEmojiSize("πŸ˜€", "45px");
await emojiPickerSecond.validateSingleEmojiSize("🀣", "45px");
await emojiPickerSecond.changeEmojiSizeView("30");
await emojiPickerSecond.validateSingleEmojiSize("πŸ˜€", "30px");
await emojiPickerSecond.validateSingleEmojiSize("🀣", "30px");

// Validate emoji categories displayed in emoji container
const emojiCategories = [
Expand All @@ -1631,10 +1631,10 @@ test.describe("Two instances tests - Friends and Chats", () => {
];
await emojiPickerSecond.validateEmojiCategories(emojiCategories);

// Validate number of emojis per category
// Validate number of emojis per category - 5 by default and 2 recently selected by user
await emojiPickerSecond.validateNumberOfEmojisPerSection(
"frequently-used",
2,
7,
);
await emojiPickerSecond.validateNumberOfEmojisPerSection(
"smileys-and-emotion",
Expand Down

0 comments on commit f59906f

Please sign in to comment.