FIX: incorrect selector in system specs (#22615)
This could lead to flakey specs, and was invalid anyways.
This commit is contained in:
parent
7a53fb65da
commit
6e95c1af3f
|
@ -81,7 +81,7 @@ module PageObjects
|
|||
end
|
||||
|
||||
def has_message?(message)
|
||||
container = find(".chat-message-container[data-id=\"#{message.id}\"")
|
||||
container = find(".chat-message-container[data-id=\"#{message.id}\"]")
|
||||
container.has_content?(message.message)
|
||||
container.has_content?(message.user.username)
|
||||
end
|
||||
|
|
|
@ -130,7 +130,7 @@ RSpec.describe "React to message", type: :system do
|
|||
sign_in(current_user)
|
||||
chat.visit_channel(category_channel_1)
|
||||
channel.hover_message(message_1)
|
||||
find(".chat-message-actions [data-emoji-name=\"+1\"").click
|
||||
find(".chat-message-actions [data-emoji-name=\"+1\"]").click
|
||||
|
||||
expect(channel.message_reactions_list(message_1)).to have_css(
|
||||
"[data-emoji-name=\"+1\"]",
|
||||
|
|
Loading…
Reference in New Issue