Merge pull request #7491 from UpshiftNetwork/fix-failing-mention-features

Fix: Use Capybara#fill_in for appending to publisher
This commit is contained in:
Benjamin Neff 2017-07-14 13:23:47 +02:00
commit 21263edbdf
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -5,8 +5,9 @@ module PublishingCukeHelpers
def append_to_publisher(txt)
status_message_text = find("#status_message_text").value
find("#status_message_text").native.send_key(" #{txt}")
expect(page).to have_field("status_message[text]", with: "#{status_message_text} #{txt}")
fill_in id: "status_message_text", with: "#{status_message_text} #{txt}"
# trigger JavaScript event listeners
find("#status_message_text").native.send_key(:end)
end
def upload_file_with_publisher(path)