diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-02-22 14:30:52 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-02-23 12:19:50 +0000 |
commit | 437ba3fba3c5ced1ee6ebf536395dfb7bc1795a6 (patch) | |
tree | a12fe215e3c792e09db35b2edbb076e365a8c8b4 /spec/features | |
parent | 238ca048db3c3b93f34e92dcb709789082646932 (diff) | |
download | gitlab-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.rb | 12 |
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 |