DEV: implements initial messages component (#21727)

This should also make `message_notifications_with_sidebar_spec.rb` more resilient as we are now checking for `is-persisted` class instead of checking for the absence of `is-staged`.
This commit is contained in:
Joffrey JAFFEUX
2023-05-24 19:28:54 +02:00
committed by GitHub
parent 38d358fb9a
commit f3f841a018
9 changed files with 91 additions and 23 deletions

View File

@ -19,7 +19,7 @@ RSpec.describe "Deleted message", type: :system, js: true do
chat_page.visit_channel(channel_1)
channel_page.send_message("aaaaaaaaaaaaaaaaaaaa")
expect(page).to have_css(".chat-message-persisted")
expect(page).to have_css(".is-persisted")
last_message = find(".chat-message-container:last-child")
channel_page.delete_message(OpenStruct.new(id: last_message["data-id"]))