mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-02 04:22:40 +00:00
18 lines
360 B
Ruby
18 lines
360 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module PageObjects
|
||
|
module Pages
|
||
|
module DiscourseAi
|
||
|
class Header < ::PageObjects::Pages::Header
|
||
|
def click_bot_button
|
||
|
find(".ai-bot-button").click
|
||
|
end
|
||
|
|
||
|
def has_icon_in_bot_button?(icon:)
|
||
|
page.has_css?(".ai-bot-button .d-icon-#{icon}")
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|