mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 00:23:43 +08:00
22 lines
518 B
Ruby
22 lines
518 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module PageObjects
|
||
|
module Pages
|
||
|
class UserPrivateMessages < PageObjects::Pages::Base
|
||
|
def visit(user)
|
||
|
page.visit "/u/#{user.username}/messages"
|
||
|
self
|
||
|
end
|
||
|
|
||
|
def visit_group_inbox(user, group)
|
||
|
page.visit "/u/#{user.username}/messages/group/#{group.name}"
|
||
|
self
|
||
|
end
|
||
|
|
||
|
def has_right_inbox_dropdown_value?(value)
|
||
|
has_css?(".user-nav-messages-dropdown .combo-box-header[data-name='#{value}']")
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|