summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2017-02-22 14:30:52 +0000
committerFilipa Lacerda <filipa@gitlab.com>2017-02-23 12:19:50 +0000
commit437ba3fba3c5ced1ee6ebf536395dfb7bc1795a6 (patch)
treea12fe215e3c792e09db35b2edbb076e365a8c8b4 /spec/features
parent238ca048db3c3b93f34e92dcb709789082646932 (diff)
downloadgitlab-ce-437ba3fba3c5ced1ee6ebf536395dfb7bc1795a6.tar.gz
Prevent propagation of click even in job name inside dropdown.27530-fix-job-dropdown-pipeline-console-error
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/projects/pipelines/pipelines_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/projects/pipelines/pipelines_spec.rb b/spec/features/projects/pipelines/pipelines_spec.rb
index 8d1214dedb4..b412ef920c5 100644
--- a/spec/features/projects/pipelines/pipelines_spec.rb
+++ b/spec/features/projects/pipelines/pipelines_spec.rb
@@ -284,6 +284,18 @@ describe 'Pipelines', :feature, :js do
expect(build.reload).to be_canceled
end
end
+
+ context 'dropdown jobs list' do
+ it 'should keep the dropdown open when the user ctr/cmd + clicks in the job name' do
+ find('.js-builds-dropdown-button').trigger('click')
+
+ execute_script('var e = $.Event("keydown", { keyCode: 64 }); $("body").trigger(e);')
+
+ find('.mini-pipeline-graph-dropdown-item').trigger('click')
+
+ expect(page).to have_selector('.js-ci-action-icon')
+ end
+ end
end
context 'with pagination' do