mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: makes chat user avatar show presence by default (#22490)
It's way more common to have presence enabled than disabled, so we should have been making it the default from start. This commit also changes the namespace of `<ChatUserAvatar />` into `<Chat::UserAvatar />` and refactors tests.
This commit is contained in:
@ -33,7 +33,7 @@ module PageObjects
|
||||
|
||||
def has_participant?(user)
|
||||
find(@context).has_css?(
|
||||
".chat-thread-participants__avatar-group .chat-user-avatar .chat-user-avatar-container[data-user-card=\"#{user.username}\"] img",
|
||||
".chat-thread-participants__avatar-group .chat-user-avatar .chat-user-avatar__container[data-user-card=\"#{user.username}\"] img",
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -32,7 +32,7 @@ module PageObjects
|
||||
end
|
||||
|
||||
def avatar_selector(user)
|
||||
".chat-thread-list-item__om-user-avatar .chat-user-avatar .chat-user-avatar-container[data-user-card=\"#{user.username}\"] img"
|
||||
".chat-thread-list-item__om-user-avatar .chat-user-avatar .chat-user-avatar__container[data-user-card=\"#{user.username}\"] img"
|
||||
end
|
||||
|
||||
def last_reply_datetime_selector(last_reply)
|
||||
|
Reference in New Issue
Block a user