diff options
-rw-r--r-- | spec/features/projects/branches/delete_spec.rb | 22 |
1 files changed, 22 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..77acceca7eb --- /dev/null +++ b/spec/features/projects/branches/delete_spec.rb @@ -0,0 +1,22 @@ +require 'spec_helper' + +feature 'Delete branch', feature: true, js: true do + 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 + sleep 1 + + expect(page).not_to have_selector('.tooltip') + end +end |