summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/support/features/discussion_comments_shared_example.rb7
1 files 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