mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 22:47:46 +08:00
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:
@ -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"]))
|
||||
|
Reference in New Issue
Block a user