diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-08-22 08:48:29 +0300 |
---|---|---|
committer | Heinrich Lee Yu <heinrich@gitlab.com> | 2019-08-29 04:35:58 +0300 |
commit | 88cf7591c7bc38b7dbd70085ea3b93813acc14f8 (patch) | |
tree | 42b20d0039cbda92de6f71caa4b08ed162e5170d /spec/support | |
parent | b34120336d33e57d9817559f82771f8da4f5f2b3 (diff) |
Fix dropdown closing when mouseup is outside
Changes the document event listener to listen to
mousedown instead of click
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/features/discussion_comments_shared_example.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/features/discussion_comments_shared_example.rb b/spec/support/features/discussion_comments_shared_example.rb index 5590bf0fb7e..f070243f111 100644 --- a/spec/support/features/discussion_comments_shared_example.rb +++ b/spec/support/features/discussion_comments_shared_example.rb @@ -73,7 +73,7 @@ shared_examples 'thread comments' do |resource_name| expect(page).not_to have_selector menu_selector find(toggle_selector).click - execute_script("document.querySelector('body').click()") + find("#{form_selector} .note-textarea").click expect(page).not_to have_selector menu_selector end |