Skip to content

Commit

Permalink
update(snapshot): update snapshots emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
luisecm committed Sep 22, 2024
1 parent 1247ed3 commit e35eab1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 1 deletion.
11 changes: 10 additions & 1 deletion playwright/PageObjects/ChatsElements/EmojiPicker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ export class EmojiPicker extends CombinedSelector {
await section.waitFor({ state: "visible" });
}

async searchEmoji(emoji: string) {
await this.emojiContainerSearchInput.fill(emoji);
}

async selectEmoji(emoji: string) {
await this.page
.getByTestId("emoji-container")
Expand Down Expand Up @@ -111,7 +115,12 @@ export class EmojiPicker extends CombinedSelector {
async validateEmojiSnapshot() {
await expect(this.page).toHaveScreenshot({
maxDiffPixels: 400,
mask: [this.skinToneSelector, this.frequentlyUsedSection],
mask: [
this.skinToneSelector,
this.frequentlyUsedSection,
this.page.getByTestId("chat-topbar-profile-picture"),
this.page.getByTestId("chat-preview-picture"),
],
});
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions playwright/specs/03-friends-two-instances.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1635,6 +1635,9 @@ test.describe("Two instances tests - Friends and Chats", () => {
await emojiPickerSecond.goToGifsTab();
await emojiPickerSecond.goToStickersTab();
await emojiPickerSecond.goToEmojisTab();

// Search for emojis in emoji picker
await emojiPickerSecond.searchEmoji("mexico");
});
});

Expand Down

0 comments on commit e35eab1

Please sign in to comment.