mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-09 00:00:12 +09:00
Wait for persisted messages before leaving system job helpers
This commit is contained in:
@@ -22,6 +22,8 @@ module SystemTestHelper
|
||||
def send_message(message)
|
||||
fill_in_rich_text_area "message_body", with: message
|
||||
click_on "send"
|
||||
# Keep job helpers active through the actual response, not the optimistic DOM.
|
||||
assert_selector ".message[data-message-id]:not([data-pending-message]) .message__body", text: message
|
||||
end
|
||||
|
||||
def within_message(message, &block)
|
||||
|
||||
Reference in New Issue
Block a user