diff options
| author | Jacob Schatz <jschatz@gitlab.com> | 2016-08-19 15:50:59 +0000 |
|---|---|---|
| committer | Jacob Schatz <jschatz@gitlab.com> | 2016-08-19 15:50:59 +0000 |
| commit | 55cd2e791bfeb90548e1cd4c142213470f1f2aac (patch) | |
| tree | 6f0c4429c12a9b4607887fc2f4d12137e027ce9e /spec/features | |
| parent | 937d770afed850ef49719578551f45fbc18347dc (diff) | |
| parent | 25465751c17f8202e6edb8b345ae783b31067dd2 (diff) | |
| download | gitlab-ce-55cd2e791bfeb90548e1cd4c142213470f1f2aac.tar.gz | |
Merge branch 'branch-delete-tooltip' into 'master'
Destroy branch delete tooltip when row is removed
## What does this MR do?
Destroys the tooltip when the branch row is deleted.
## What are the relevant issue numbers?
Closes #19528
See merge request !5120
Diffstat (limited to 'spec/features')
| -rw-r--r-- | spec/features/projects/branches/delete_spec.rb | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/spec/features/projects/branches/delete_spec.rb b/spec/features/projects/branches/delete_spec.rb new file mode 100644 index 00000000000..63878c55421 --- /dev/null +++ b/spec/features/projects/branches/delete_spec.rb @@ -0,0 +1,24 @@ +require 'spec_helper' + +feature 'Delete branch', feature: true, js: true do + include WaitForAjax + + let(:project) { create(:project) } + let(:user) { create(:user) } + + before do + project.team << [user, :master] + login_as user + visit namespace_project_branches_path(project.namespace, project) + end + + it 'destroys tooltip' do + first('.remove-row').hover + expect(page).to have_selector('.tooltip') + + first('.remove-row').click + wait_for_ajax + + expect(page).not_to have_selector('.tooltip') + end +end |
