summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorClement Ho <ClemMakesApps@gmail.com>2017-03-07 19:36:02 -0600
committerClement Ho <ClemMakesApps@gmail.com>2017-03-07 23:17:58 -0600
commitde87b94d1153957da1afc49264bda43d5a825ecb (patch)
treefcac4e296379e286872ef15b936f4a80cc3a1db6 /spec
parentf44fb5cfd0cc4baada4d88f9724c74fc44326637 (diff)
downloadgitlab-ce-de87b94d1153957da1afc49264bda43d5a825ecb.tar.gz
Fix filtered search visual token editing dropdownfix-fs-edit-dropdown
Diffstat (limited to 'spec')
-rw-r--r--spec/features/issues/filtered_search/visual_tokens_spec.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/features/issues/filtered_search/visual_tokens_spec.rb b/spec/features/issues/filtered_search/visual_tokens_spec.rb
index b62a6d7913d..a78dbaf53ed 100644
--- a/spec/features/issues/filtered_search/visual_tokens_spec.rb
+++ b/spec/features/issues/filtered_search/visual_tokens_spec.rb
@@ -226,6 +226,22 @@ describe 'Visual tokens', js: true, feature: true do
end
end
+ describe 'editing multiple tokens' do
+ before do
+ input_filtered_search('author:@root assignee:none', submit: false)
+ first('.tokens-container .filtered-search-token').double_click
+ end
+
+ it 'opens author dropdown' do
+ expect(page).to have_css('#js-dropdown-author', visible: true)
+ end
+
+ it 'opens assignee dropdown' do
+ find('.tokens-container .filtered-search-token', text: 'Assignee').double_click
+ expect(page).to have_css('#js-dropdown-assignee', visible: true)
+ end
+ end
+
describe 'add new token after editing existing token' do
before do
input_filtered_search('author:@root assignee:none', submit: false)