From 6b2c010ecc6f60da6ef193670e8701b3178f2a7d Mon Sep 17 00:00:00 2001 From: Benjamin Neff Date: Fri, 11 Aug 2017 22:03:48 +0200 Subject: [PATCH] Wait for like to finish --- features/support/publishing_cuke_helpers.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/support/publishing_cuke_helpers.rb b/features/support/publishing_cuke_helpers.rb index d9a17b98c..a6e0593ff 100644 --- a/features/support/publishing_cuke_helpers.rb +++ b/features/support/publishing_cuke_helpers.rb @@ -95,7 +95,9 @@ module PublishingCukeHelpers def like_stream_post(post_text) within_post(post_text) do - find(:css, 'a.like').click + action = find(:css, "a.like").text + find(:css, "a.like").click + expect(find(:css, "a.like")).not_to have_text(action) end end