From e97da964f4bd3acc9c0ebf457c1d87e25b35936f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Thu, 11 Aug 2016 16:34:29 +0200 Subject: [PATCH] add debug output for features/desktop/mentions_from_profile_page.feature:36 --- features/support/publishing_cuke_helpers.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/features/support/publishing_cuke_helpers.rb b/features/support/publishing_cuke_helpers.rb index 36985fc50..bcc7aff8a 100644 --- a/features/support/publishing_cuke_helpers.rb +++ b/features/support/publishing_cuke_helpers.rb @@ -9,7 +9,12 @@ module PublishingCukeHelpers # make sure the other text field got the new contents 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