summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-07-20 10:33:21 +0100
committerPhil Hughes <me@iamphill.com>2016-08-19 14:29:23 +0100
commit0da7a892bb7fec5c580a6a15d2d9f02cf9d86db1 (patch)
tree82920b13c064f1b5af10d735b1153714cea7af9d /spec/features
parent52c610246007087dcb3dbcf9ab900c27197576d3 (diff)
downloadgitlab-ce-0da7a892bb7fec5c580a6a15d2d9f02cf9d86db1.tar.gz
Added tests
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/projects/branches/delete_spec.rb22
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