mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 10:40:39 +08:00
57c96ed03d
This is a follow up to 1cbc65ba79
where
visiting a group with a mixed case name would result in an error.
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
|