parent
1811028835
commit
8ba0cb0c16
1 changed files with 3 additions and 5 deletions
|
|
@ -4,13 +4,11 @@ module PublishingCukeHelpers
|
||||||
end
|
end
|
||||||
|
|
||||||
def append_to_publisher(txt, input_selector='#status_message_fake_text')
|
def append_to_publisher(txt, input_selector='#status_message_fake_text')
|
||||||
status_message_text = find("#status_message_text", visible: false).value
|
elem = find(input_selector)
|
||||||
find(input_selector).native.send_key(" #{txt}")
|
elem.native.send_keys(' ' + txt)
|
||||||
|
|
||||||
# make sure the other text field got the new contents
|
# make sure the other text field got the new contents
|
||||||
if input_selector == "#status_message_fake_text"
|
expect(find("#status_message_text", visible: false)).to have_value txt
|
||||||
expect(page).to have_selector("#status_message_text[value='#{status_message_text} #{txt}']", visible: false)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def upload_file_with_publisher(path)
|
def upload_file_with_publisher(path)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue