mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 10:53:43 +08:00
20 lines
482 B
Ruby
20 lines
482 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module PageObjects
|
||
|
module Components
|
||
|
class EmojiPicker < PageObjects::Components::Base
|
||
|
def select_emoji(emoji_name)
|
||
|
find(".emoji-picker .emoji[title='#{emoji_name}']").click
|
||
|
end
|
||
|
|
||
|
def search_emoji(emoji_name)
|
||
|
find(".emoji-picker .search input").fill_in(with: emoji_name)
|
||
|
end
|
||
|
|
||
|
def has_emoji?(emoji_name)
|
||
|
page.has_css?(".emoji-picker .emoji[title='#{emoji_name}']")
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|