diff options
author | Rémy Coutable <remy@rymai.me> | 2017-11-07 16:19:05 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-11-07 16:19:05 +0100 |
commit | eeef666358816ee1cad2aef5c287cb7bef58bc7a (patch) | |
tree | 479994c537407124380eff20bfd01ebbe4233fd5 | |
parent | d45fef88f7f0aa249893f9f151185eac5b9bb870 (diff) | |
download | gitlab-ce-39869-master-failing-due-to-spec-features-discussion_comments-merge_request_spec-rb.tar.gz |
Try to fix a transient failure39869-master-failing-due-to-spec-features-discussion_comments-merge_request_spec-rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r-- | spec/support/features/discussion_comments_shared_example.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/support/features/discussion_comments_shared_example.rb b/spec/support/features/discussion_comments_shared_example.rb index aabc64d972b..c6b0018e6df 100644 --- a/spec/support/features/discussion_comments_shared_example.rb +++ b/spec/support/features/discussion_comments_shared_example.rb @@ -66,11 +66,16 @@ shared_examples 'discussion comments' do |resource_name| end it 'closes the menu when clicking the toggle or body' do + expect(page).to have_selector menu_selector + find(toggle_selector).click expect(page).not_to have_selector menu_selector find(toggle_selector).click + + expect(page).to have_selector menu_selector + find('body').click expect(page).not_to have_selector menu_selector |