From 8275e6ba54395e4bd65d3ef58365491668f799a1 Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Mon, 1 Dec 2014 01:49:44 +0100 Subject: [PATCH] Improve append to publisher spec --- features/support/publishing_cuke_helpers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/support/publishing_cuke_helpers.rb b/features/support/publishing_cuke_helpers.rb index 863f29f7b..a78d8cece 100644 --- a/features/support/publishing_cuke_helpers.rb +++ b/features/support/publishing_cuke_helpers.rb @@ -8,7 +8,7 @@ module PublishingCukeHelpers elem.native.send_keys(' ' + txt) # make sure the other text field got the new contents - expect(find('#status_message_text', visible: false).value).to include(txt) + expect(page).to have_xpath("//input|textarea/.[@id='status_message_text' and contains(@value, '#{txt}')]", visible: false) end def upload_file_with_publisher(path)