discourse/spec/system/page_objects/pages/user_private_messages.rb
Alan Guo Xiang Tan 57c96ed03d
FIX: Broken group messages inboxes when group name is mixed case (#22183)
This is a follow up to 1cbc65ba79 where
visiting a group with a mixed case name would result in an error.
2023-06-19 17:36:04 +08:00

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