summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2017-10-06 17:02:07 -0500
committerClement Ho <ClemMakesApps@gmail.com>2017-10-06 17:02:07 -0500
commit662bf93ba0739f12cd3724ff6e53ae8503f84179 (patch)
treeb2b48b9a77ae4d4dc95bae5608269f27240e3574
parent6eb37ccb0246095f458f8853cfc61744470bde7f (diff)
downloadgitlab-ce-ch-test-3.tar.gz
Test theory 2ch-test-3
-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