FIX: incorrect selector in system specs (#22615)

This could lead to flakey specs, and was invalid anyways.
This commit is contained in:
Joffrey JAFFEUX 2023-07-14 11:01:35 +02:00 committed by GitHub
parent 7a53fb65da
commit 6e95c1af3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ module PageObjects
end end
def has_message?(message) 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.message)
container.has_content?(message.user.username) container.has_content?(message.user.username)
end end

View File

@ -130,7 +130,7 @@ RSpec.describe "React to message", type: :system do
sign_in(current_user) sign_in(current_user)
chat.visit_channel(category_channel_1) chat.visit_channel(category_channel_1)
channel.hover_message(message_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( expect(channel.message_reactions_list(message_1)).to have_css(
"[data-emoji-name=\"+1\"]", "[data-emoji-name=\"+1\"]",