Merge pull request #7491 from UpshiftNetwork/fix-failing-mention-features
Fix: Use Capybara#fill_in for appending to publisher
This commit is contained in:
commit
21263edbdf
1 changed files with 3 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue