From 662bf93ba0739f12cd3724ff6e53ae8503f84179 Mon Sep 17 00:00:00 2001 From: Clement Ho Date: Fri, 6 Oct 2017 17:02:07 -0500 Subject: Test theory 2 --- spec/support/features/discussion_comments_shared_example.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spec/support/features/discussion_comments_shared_example.rb b/spec/support/features/discussion_comments_shared_example.rb index ee088bdbba9..d0a7b1b9b1a 100644 --- a/spec/support/features/discussion_comments_shared_example.rb +++ b/spec/support/features/discussion_comments_shared_example.rb @@ -72,10 +72,11 @@ shared_examples 'discussion comments' do |resource_name| expect(page).not_to have_selector menu_selector find(toggle_selector).click - find('body').click - # Test theory - sleep 3 + # test theory + expect(page).to have_selector menu_selector + + find('body').click expect(page).not_to have_selector menu_selector end -- cgit v1.2.1