From 0da7a892bb7fec5c580a6a15d2d9f02cf9d86db1 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Wed, 20 Jul 2016 10:33:21 +0100 Subject: Added tests --- spec/features/projects/branches/delete_spec.rb | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 spec/features/projects/branches/delete_spec.rb (limited to 'spec/features/projects/branches') 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 -- cgit v1.2.1