Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
# frozen_string_literal: true
module PageObjects
module Components
class EmojiPicker < PageObjects::Components::Base
def emoji_button_selector(emoji_name)
".emoji-picker .emoji[title='#{emoji_name}']"
end
def select_emoji(emoji_name)
find(emoji_button_selector(emoji_name)).click
def search_emoji(emoji_name)
find(".emoji-picker .search input").fill_in(with: emoji_name)
def has_emoji?(emoji_name)
page.has_css?(emoji_button_selector(emoji_name))
def has_no_emoji?(emoji_name)
page.has_no_css?(emoji_button_selector(emoji_name))