2022-11-08 17:58:11 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
module PageObjects
|
|
|
|
module Pages
|
|
|
|
class Sidebar < PageObjects::Pages::Base
|
2022-11-11 00:39:15 -05:00
|
|
|
def open_draft_channel
|
2022-11-08 17:58:11 -05:00
|
|
|
find(".sidebar-section-chat-dms .sidebar-section-header-button", visible: false).click
|
|
|
|
end
|
2022-11-11 00:39:15 -05:00
|
|
|
|
|
|
|
def open_browse
|
|
|
|
find(".sidebar-section-chat-channels .sidebar-section-header-button", visible: false).click
|
|
|
|
end
|
|
|
|
|
|
|
|
def open_channel(channel)
|
|
|
|
find(".sidebar-section-link[href='/chat/channel/#{channel.id}/#{channel.slug}']").click
|
|
|
|
end
|
2022-11-08 17:58:11 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|