add debug output for features/desktop/mentions_from_profile_page.feature:36

This commit is contained in:
Jonne Haß 2016-08-11 16:34:29 +02:00
parent e1ed2cacbb
commit e97da964f4
No known key found for this signature in database
GPG key ID: F347E0EB47AC70D6

View file

@ -9,7 +9,12 @@ module PublishingCukeHelpers
# 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" if input_selector == "#status_message_fake_text"
expect(page).to have_selector("#status_message_text[value='#{status_message_text} #{txt}']", visible: false) begin
expect(page).to have_selector("#status_message_text[value='#{status_message_text} #{txt}']", visible: false)
rescue RSpec::Expectations::ExpectationNotMetError
puts "Value was instead: #{find('#status_message_text', visible: false).value.inspect}"
raise
end
end end
end end